36,051 Topics
![]() | |
I've got this code which seems right but I keep getting: An error occurred at line: 19 in the jsp file: /viewFAQ.jsp Syntax error, insert "AssignmentOperator Expression" to complete Assignment where the lines involved are: [code] 16: String key = request.getParameter("edit"); 17: ResultSet columns1 = statement.executeQuery("SELECT * FROM Questions WHERE … | |
Hi friends, I am trying to develop the smiley installer which will install the smiley/emoticons on messengers installed on your system. Can anyone help me for below. 1) which language/technology should I use for it? 2) Give outline/algorithm ? Thanks in advance. Regards, mahendra | |
right I am trying to practice with my programming taking my lectures advice and breaking the problem down into steps, then when I code, code a small amount, compile it check it works and then code the next bit. So I have an exercise I am trying out. Part of … | |
Hi all, I want to run an OS command from my Java code. Basically I want to delete an unknown number of file from a particular directory from my Java code (in windows). But the way "del *.*" commnad works it prompts you whether you want to delete it or … | |
Hi all, I want to read a properties file from the same directory as my program, e.g. my program is in C:\WorkSpage\Myprogram.java and I have a properties file called index.properties how can I read the file, without specifying a path? I have tried the following but it doesn't read the … | |
I've recently been trying to download jGrasp on my home computer because this is the program I am using at school to start to learn Java. I keep receiving the same error message when I try to compile a simple "hello world" program. "----jGRASP wedge2 error: command "javac" not found." … | |
hello friends,I want to use simple Java Beans in Struts Architecture..can we use simple beans with struts? | |
import java.util.Scanner; public class TuringMachine { private static char[] array_in; private static int dir=0; private static int state=0; private static int i=0, i_clone; public static void main(String[] args) { Scanner read = new Scanner(System.in); do { System.out.print("Input Number: "); String str = read.next(); array_in = str.toCharArray(); if(!isNotValid()) halt(0); else break; … | |
Since Input of ENTITY and of it's attribute is ok I am trying to op the value of the entity and it's attribute details so my modified code abt ENTITY is: package datamodel; import java.io.*; import java.util.*; public class ENTITY{ String entity_name; int no_of_attribute; int no_of_entity; attribute attr1; public ENTITY(String … | |
Please take a lot at this. Tomcat is reporting the variable editQuestion cannot be resolved. [code] <% String key = request.getParameter("edit"); ResultSet columns1 = statement.executeQuery("SELECT * FROM Questions WHERE ID ="+ key +""); while(columns1.next()) { String editid = columns1.getString("ID"); String editQuestion = columns1.getString("Question"); String editAnswer = columns1.getString("Answer"); String editUpdated = … | |
Hi, I am planning to take Sun Certified Java Associate exam. Please give me some tips regarding how to start. Also if any of you have passed SCJA exam please provide some piece of advice. Thank you. | |
i have to write a program that has to subtract the purchase price from 100 and then determine the number of qtr,dms,nkls,pns.. when i run it my results are in decimal am not sure how to change it..any advice thanks alot.. import java.util.Scanner; public class Subtract { public static void … | |
hi friends, I want to create a chart (pie,linear) and bar diagrams for my project in struts.Anyone knows about this,please help me.Thanks in advance | |
I write text to a pdf template based on the client's spec. I can set all the font name, sizes, etc pdf.beginText(); pdf.setFontAndSize(arg1, arg2); pdf.showTextAligned(align, text, x,y,0F); pdf.endText(); The problem I have is this part [B]pdf.setCharacterSpacing(float a);[/B] When I look at the properties of the text on the pdf (by … | |
1. For each of the following mathematical functions state the equivalent Big-Oh function, keeping in mind the general rules for using Big-Oh as described in the textbook and lecture. Assume very large values for n (i.e., as n approaches infinity). a. 100n2 + 87 b. 2n3 - 7n c. 70000000n2 … | |
import java.awt.*; import javax.swing.*; import java.awt.Color; import java.awt.event.*; import javax.swing.event.*; import java.io.File; import java.util.*; /* <Applet Code="MyPaint.class" width=400 height=400> </Applet> */ public class MyPaint extends JApplet { /* Declaring the variables.*/ JPanel panel; JPanel textAreaPanel; JTextArea drawTextArea; JScrollPane drawScrollPane; JLabel line, color, paint,kid,cil; JButton circle, rect, poly, ellipse; JComboBox cbLine, … | |
Hi, I am new to javascript using Firefox. I don't know the basic principles of change in syntaxes if i have to make page compatible with FF. We've created javascript which is working fine with IE 6.0/7.0 and safari but it is not at all wokring with FF. Below is … | |
hi i need help regaurding the software development on java.we are trying to develop a administering software for internet usage... | |
is it possible to combine codes from VBScript and java to run together, which the VBScript could do some operation native to the operating system, while java couldn't........ | |
I don't know if this is the proper forum for my question, but I'll give it a try. We have a few standalone Java applications sitting on a remote AIX box. These applications are listeners, so they start up and wait for events, i.e. they remain running, kind of like … | |
Hei guys, I have a c++ library of sorts. A user has written a Java Applet and wants to be able to call the C++ library functions. This is something my supervisor proposed. He suggested that Applet via a web service call (AXIS-C++) and using tomcat server , will call … | |
Respected sir/madam 1> how to call project folder in netbean? i am trying to run full online exam project at netbean. am getting exact display at tomcat. but am getting error at netbean.(like am keeping all jsp pages in subfolders like for exam, test...etc) 2> how can i make connection … | |
import javax.swing.*; import java.awt.*; public class ImageObsApplet extends JApplet implements Runnable { DrawingPanel fDrawingPanel; Image fImg; int fImageNum=0; String fMessage="Loading.."; boolean fDoneLoadingImage=false; public void init() { Container content_pane=getContentPane(); fDrawingPanel=new DrawingPanel(this); content_pane.add(fDrawingPanel); fImg=getImage(getCodeBase(),"Sunset.jpg"); } public void start() { Thread thread=new Thread(this); thread.start(); } public void run() { int width=fImg.getWidth(this); if(width>=0) { … | |
[code] /********************************* * Program Name: Task2.java * * Date: 27 Janauary 2008 * * Programmer: Dhanandjay MOTAH * *********************************/ import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.awt.Graphics.*; import java.applet.Applet; public class Task1 extends JApplet implements ActionListener { JLabel lab1; //label created JComboBox comb1; //combo box created JButton but1; //button created … | |
{ This is an exploratory question to just find out if something is possible. } The facts are these : 1. The java program is closed source, but is running on an accessible workstation. 2. The gui is written in AWT. 3. OS is windows 4. Windows tools like Spy++ … | |
I m going to build a data modelling software project by java like DDS LITE I am coding the algorithmic part of the project where I have to build some composite data at the preliminary phase of the implementation of the algorithms, such composite data items are entity , relationship … | |
i know this could be very simple for you guys but i do have a problem with this. The program searches for a particular array from a text file(i don't know how to import a text file too) and counts the number of occurrence in it. The text file is … | |
Hi Friends, I want a dummy JSP/Servlet project for Study. Please help me out for this. Thanks and regards, Shrish | |
For whatever reason my jsp won't open in excel, it just keeps rendering in the browser. have a look, seems straightforward enough, any thoughts would be appreciated. thx Mike [CODE]<%@ page language="java" import="java.util.*" %> <%@ page import="com.****.*****.bsc.bo.*"%> <%@ page contentType="application/vnd.ms-excel" %> <% response.setHeader("Content-Disposition", "attachment; filename=\"bsc.xls\""); %> <%ArrayList al = (ArrayList)request.getAttribute("METRICVALUES");%> … | |
Please find attached Doc2.doc. It is a pic of my program. (this program successfully outputs the entire database. Yet I would like to learn the general steps to click the search button and perform a query. further please find the method I have for a search @Action. I am not … | |
hi, i have the following codes i did now i need top collect the output of these arrays to a third one, and then see what values are same.. plz help me in this code.. /********************************* * Program Name: Task2.java * * Date: 27 Janauary 2008 * * Programmer: Dhanandjay … | |
![]() | Hi. I have been trying to access Microsoft Outlook from Java. This be in case of jsp page or traditional Java. Is there anyone how knows how? In the same case i would also ask if someone have tried to use mail session in Apache Geronimo. There is a plugin … |
The solution present at Apache Commons Chain design pattern library has taken me to consider the broad use of context objects as a mean for decoupling my class objects. In other words, all i need is a set of interfaces which my objects expect to get a handle from the … | |
hi everybody, i am trying to get the name and id of the opened application to check whether the application is opened properly or not using java | |
hi, i have to write a code where there will b two arrays which displays a list of 0 to 100 random numbers, then a third thread will take these twa values and find the ones common in the range 70-80 and sort them in ascending order and display it.. … | |
The programs that will accept identifier is there any sample because usually I used to analyze using definite automata then i dont know what functions to be use in making identifier program in java hope theres positive response... | |
okay ill explain.this is a program that will convert binary. [CODE]import java.io.*; public class decbin{ public static DataStreamReader rustan=new DataStreamReader(System.in) public static void main (string[]args) throws IOException{ int Q,R,A; System.out.println("Enter a number to be convert: "); Q=Integer.parseInt(rustan.readLine()); while(Q!=0){ Q=A/2; R=A%2; A=Q; //one missing statement i think. i need help. } … | |
hi, can u tel me where should i place the code for database connection?..is it placed in the same directory as other jsp and html files?....shall i put it in a java bean and then include it in all the other jsp files?..i | |
I want to develope a new tool like Nmap written in c++ and can be easily downloaded from wwwdotinsecuredotorg. Can any one knows how do i start. I know how to detect ports but how to map them with services. | |
how to take computer name in linux I had tried this code in Windows Xp, it's Ok. but while i run in linux i got error "Cannot get computer name java.net.UnknownHostException: comcentos: comcentos" i'm using Centos 5. i have edit in file etc/sysconfig/network NETWORKING=yes NETWORKING_IPV6=yes HOSTNAME=comcentos [CODE] package myPackage; import … | |
one of the best games ever was Swing a software 2000 game which company went bust. Worked on win 98 on xp the screen miserably divided into 4 and was unplayable the cd is cracked and anybody knows how to get a replacement or the game working would be happy | |
Hi, I'm new to JSP. Can anyone suggest me any site where I can get good tutorial for beginners. Thanks. ![]() | |
Hi everybody, i have got a java practical project due this year, though i want to use my previous years project and just build upon it. i am in my last year of high school, so it is a very basic program. i dont know if anybody would help me … | |
i have acode that upload file from client to web server but i need to insert the file name into DB (mysql) to get it in download list............HOW? this is jsp code <%@ page contentType="text/html;charset=windows-1252"%> <% response.setContentType("text/html"); response.setHeader("Cache-control","no-cache"); String err = ""; String lastFileName = ""; String contentType = request.getContentType(); … | |
hi, can you please give a step by step procedure on how to connect oracle database with jsp. I am new to the language and cant quite figure a way out.My first page is a user login and therafter username is used.How do i use sessions for this? Thanks in … | |
thx..my first page is a login.in that user name and password are to be accessed from oracle database and then matched on button click.if match occurs then user proceeds to next page. So please help me out.I m getting very confused as to where to put what code..ryt from db … | |
hi .. plz anyone has an ideas for final projects that can i do it in java? and i hope in computer information system :idea: plezzzz | |
friends i got problem in connection between oracle and jsp as given in cracking codes in j2me in following codes <?xml version="1.0"?> <jsp:root xmlns:jsp="http://java.sun.com/products/jsp/dtd/jsp_1_0.dtd"> <main> <title>Branch Info</title> <%Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");%> <%java.sql.connection db=java.sql.DriverManager.getConnecton("jdbc:odbc:master","sa","amrit");%> <%java.sql.Statement st=db.createStatement();%> <%java.sql.ResultSet rs;%> <%rs=st.executeQuery("select item_code,quantity,unit_price form stock_mast;");%> <%while(rs.next(()){%> <%String name=rs.getString("item_code");%> <%int aId=rs.getInt("quantity");%> <%int uPrice=rs.getInt("unit_price");%> <item_code><%=name%><quantity><%=aId%></quantity><unit_price><%=uPrice%></unit_price></item_code> <%} %> <%rs.close();%> </main> … | |
[code] hello! Can anyone plz tell me how 2 write z following php code into jsp..Thx in advance.. <?php $userid = $_POST["txt_login"]; $password = $_POST["txt_pwd"]; //Connecting to database include("db_connect.php"); if (($userid=='admin' OR $userid=='ADMIN') && ($password=='admin' OR $password=='ADMIN')) header( 'Location: http://localhost/MyWeb/admin.php?id='.$userid) ; else { $Rs = mysql_query("SELECT * FROM Users WHERE … |
The End.