35,618 Topics
![]() | |
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 … | |
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 … | |
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 | |
hi masijade, tell me how to close the application using java. | |
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 … | |
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. | |
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 … | |
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 … | |
HI, i want to generate html file from xml and xslt documnet using java...pls,,, | |
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 … | |
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 | |
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 */ … | |
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 … | |
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 … | |
[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 … | |
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> … | |
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 … | |
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 | |
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 … | |
[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 … | |
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); … | |
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 … | |
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 … | |
sorry guys i have no idea of doing this please help me out. | |
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? | |
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 … | |
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 … | |
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 … | |
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, … | |
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? |
The End.