35,618 Topics

Member Avatar for
Member Avatar for gReaen

Hello, I know this is a basic question but i didnt get the answer myself. So posting it here. I have a program that spans many files, all are .java. If i have to compile them should all of them be in the bin folder of the JDK? Can i …

Member Avatar for gReaen
0
109
Member Avatar for JConnor135

Hi, I am trying to write a code that will delete an element from a linked list and then display the updated list, but I keep getting a nullpointerexception, does anyone know where I went wrong? [ICODE]import java.util.*; public class IntNode { public int item; public IntNode next; public IntNode …

Member Avatar for Alex Edwards
0
85
Member Avatar for mrityunjay22

catalina.bat file is missing error comes when i run jsp page with tomcat 5.5 and netbeans 6.0. i have tried different mirrors for tomcat5.5 but above mentioned error comes always

Member Avatar for tuphng
0
964
Member Avatar for hidash_in
Member Avatar for tactfulsaint

servlet package does not exist any idea [QUOTE] import java.io.*; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; public class EmployeeDetails extends HttpServlet{ static int i; Connection con; PrintWriter out; ResultSet rs; public void ini(){ i=0; con=null; out=null; rs=null; } public void doGet(HttpservletRequest request, HttpServletResponse respose) throws ServletException,IOException{ i++; out=response.getwriter(); out.println("<b>your are …

Member Avatar for peter_budo
0
158
Member Avatar for bkgupta

Hi , I am a new member to Daniweb.I have one issue on progress bar in jsp. can any body tell me how to generate progress bar in jsp,while its fetching data from server side.

Member Avatar for peter_budo
0
66
Member Avatar for zyaday

this is a code that i found fromsome website I replaced line 18 by this line below, and put theimage ho.gif in the project folder. Sth is wrong..image is not displayed on the screen? what is the problem?? I jsut wanted to try it using one image only............that's why i …

Member Avatar for darkagn
0
90
Member Avatar for twgood

I have gotten my program to compile but it will not run: here is the error: init: deps-jar: Compiling 1 source file to C:\NetBeansProjects\SCHOOL1\JavaApplication27\build\classes compile-single: run-single: java.lang.NoClassDefFoundError: javaapplication27/FGInventory2 Caused by: java.lang.ClassNotFoundException: javaapplication27.FGInventory2 at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) Exception in thread …

Member Avatar for sciwizeh
0
96
Member Avatar for annuw

HI, i want to generate html file from xml and xslt documnet using java...pls,,,

Member Avatar for annuw
0
73
Member Avatar for sbuggle

Hello, I need detailed examples of how to create a pdf from jsp. On the jps page there will be a print button and when clicked the same jsp will pop up as a pdf to print. How do you include this behind the print button.... Using ireport Someone said …

Member Avatar for peter_budo
0
97
Member Avatar for TheBuzzer

Which one do you perfer to use? For me I am using glassfish becuase netbeans installed it for me. Also I heard glassfish support newer java api while tomcat doesnt

Member Avatar for ~s.o.s~
0
61
Member Avatar for wrappingduke

Hello, Attempting to create a progress bar for awt-based application. I'm trying use a thread to do some simple animation to give the appearance that a frame (the progress bar) is incrementing. However, frame will not paint immediately. Here's the code: [CODE] import java.awt.*; /** * * @author user */ …

Member Avatar for wrappingduke
0
127
Member Avatar for tactfulsaint

import javax.servlet.*; import javax.servlet.http.*; these servlet package does not exist, any idea [QUOTE] import java.io.*; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; public class EmployeeDetails extends HttpServlet{ static int i; Connection con; PrintWriter out; ResultSet rs; public void ini(){ i=0; con=null; out=null; rs=null; } public void doGet(HttpservletRequest request, HttpServletResponse respose) throws …

Member Avatar for ChaseVoid
0
149
Member Avatar for manonthemoon

Hi.. I am facing a problem in aggregating some CSV data, using Java. I am not able to figure out how to aggregate the common values. My input is like this: G01,38020, XX, 3M EUR, Sep-07,10,23 G01,38020, XX, 3M EUR, Sep-07,11, ,72 G01,38020, XX, 3M EUR, Dec-07,14, ,500 My expected …

0
46
Member Avatar for amjad277

[B]- I try here to close the XAConnection and XASession session.close() connection .close() - but the server shows me this Exception:[/B] 2008-07-18 09:30:14,093 DEBUG [org.jboss.mq.il.uil2.ServerSocketManagerHandler] Exiting on IOE java.net.SocketException: Socket closed at java.net.SocketInputStream.read(SocketInputStream.java:162) at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) at java.io.BufferedInputStream.read(BufferedInputStream.java:235) at org.jboss.util.stream.NotifyingBufferedInputStream.read(NotifyingBufferedInputStream.java:79) at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2196) at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2376) at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2443) at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2515) at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2664) at …

Member Avatar for amjad277
0
167
Member Avatar for sr0867

I am using Oracle IAS 10 g for deploying my web application using a war files.. I want to access certain cgi files placed in under cgi bin besides WEB-INF on the oracle server Wht should be the entries in web.xml ?? Tried doing this but did not worked <servlet-name>CGIServlet</servlet-name> …

0
61
Member Avatar for tactfulsaint

i need help with login mechanism, i have this application that i am trying to add a login form but i dont know how to authenticate the username and password.. i need to learn how to send the username and password to the database and when the user logs in …

Member Avatar for tactfulsaint
0
91
Member Avatar for codered152

Hi All i have java question for you guys. How can i add columns by click the button. i want my program keep adding columns whenever user click the button. any help. Thank you

Member Avatar for vidaj
0
82
Member Avatar for twgood

My assignment says: Modify the Inventory Program so the application can handle multiple items. Use an array to store the items. The output should display the information one product at a time, including the item number, the name of the product, the number of units in stock, the price of …

Member Avatar for javaAddict
0
88
Member Avatar for bloody_ninja

[code=java]import java.awt.Color; import java.awt.BorderLayout; import java.awt.event.*; import javax.swing.*; import java.io.*; import java.net.*; class SocketClient extends JFrame implements ActionListener { JLabel text, clicked; JButton button; JPanel panel; JTextField textField; Socket socket = null; PrintWriter out = null; BufferedReader in = null; SocketClient(){ //Begin Constructor text = new JLabel("Text to send over …

Member Avatar for masijade
0
295
Member Avatar for JConnor135

for this code I need to set string d to char c, can anyone tell me how to do it? [ICODE]public static void main(String[] args) { int n; int m; String d; char c; Scanner sc = new Scanner(System.in); System.out.println("Input Integer: "); //get the value n=sc.nextInt(); int answer = sum_upto(n); …

Member Avatar for Software guy
0
170
Member Avatar for codered152

hi all i have a question about the java button listener i m working on this project where i want the user to input their value in the textfield and when user press the button the value needs to show on the label next to it. so now i got …

Member Avatar for codered152
0
107
Member Avatar for JConnor135

For this piece of code I have to change the arguments in the writeLine and writeBlock methods to char c, instead of String c. The problem is I dont know how to get the scanner to read in a character instead of a string. Is there any way to go …

Member Avatar for peter_budo
0
132
Member Avatar for mir_dev
Member Avatar for jeetudaljit

Hi, Could anyone help me to pass user name and password to another jsp page for testing from database without showing it in URL that what user has entered?

Member Avatar for jeetudaljit
0
98
Member Avatar for Motvel

I have a list of choise. All i want to do, is when i click on a element - to show the string of that element. Suppose i click on "Pizza" element, then i should to get at console (with System.out.println()) the word -Pizza. Any ideas or example will be …

Member Avatar for Vilice
0
180
Member Avatar for shaynicb25

I am working on the following Java application Write a program that allows the user to enter the last names of five candidates in a local election and the votes received by each candidate. The program should then output each candidate’s name, the votes received by that candidate, and the …

Member Avatar for javaAddict
0
113
Member Avatar for mln_15584

Hi All, I have written two separate thread to run continuously in my project and now I am running those threads manually. When I deploy this project's war in tomcat server I can't run those thread manually. But my project need to run those threads continuously in my server. how …

Member Avatar for masijade
0
101
Member Avatar for JConnor135

I have two methods that when prompted by the user will print out n amount of String on m rows, for ex: * 3 3 would print out: *** *** *** here is the code I have: [ICODE]public static void writeLine(String c, int n) { if(n==0) System.out.println(); else System.out.print(c); writeLine(c, …

Member Avatar for JConnor135
0
194
Member Avatar for LevelSix

Is there a way that after you store something, such a Rectangle, to an object variable, say, Object x, that you can then look at object x, and determine it is indeed a rectangle, allowing you to use Graphic methods such as draw on said object?

Member Avatar for LevelSix
0
129

The End.