35,618 Topics
![]() | |
Hi All, I need help with try catch statement at the statement. for code `myChar = s.readLine().charAt(0);` I keep getting error: can't find variable myCar and s if te remove the whole try catch statment I get error: unreported exeception java.io.IOException; must be caught or declared to be thrown on … | |
hi, in my registration page i am trying to get the gender of the user through radio button. i know how to use <s:textfield but i am don't know how to use <s:radio in my jsp page. please help me. | |
Hi All, I am supervising a project on JSP. The problem is JSP is not compiling in IE6, the coding environment is running through NetBeans. The version of the browser is as per project requirement. FYI- the DB is PostGreSQL. Please help me | |
Hi all. I'm new with jsp and i'm just looking for create a login solution. I use a mysql database and what i'm looking for is what follows: Make a query to my sql database and then insert the output of one field in a variable. I need this variable … | |
Hello I have the keycards.xml. and it's DTD and the sys put it in a location out side of my package src folder. Is this correct? Should I move this folder to a package in the src file. I am not sure how to locate it if this is true. … | |
some days back it was working but i don't why suddenly my java program is not compiling. i have set classpath=".;C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\servlet.jar". c:\> javac -classpath HowdyServlet.java it shows error in import java.servlet; statement and likewise in all HttpServlet lines too. or i have tried the other way … | |
Problem: I need to create a 2-arg constructor to do the following --> 2-arg constructor that accepts a RetailItem object as an argument that is used to initialize the retailCost attribute. The 2-arg constructor is created in the CashRegister class. here are my classes so far: ------------------------------------------------------- [code]/* * Retailitem … | |
Hi everyone, I have a system where a user can order some predefined items. To do this, I have been using a switch statement, e.g: [CODE] System.out.println("Product?"); System.out.println("\n1. Chair\n2. Table\n3. Desk\n4. Other"); int sel = 0; sel = console.nextInt(); switch(sel){ case 1: <code> case 2: <code> case 3: <code> [/CODE] … | |
Here is my code for a JDBC program to do account transfer. I am having trouble with my transfer code. Can anyone help. This is urgent. [CODE]import java.sql.*; /***************************************************** class BankAccountTransfer { /** Make a transfer from two accounts owned by same customer. * @param custNum the 6-digit customer number … | |
![]() | Okay, so i've been trying to get this code to work for quite some time, and i'm about to go bonkers. Hopefully y'all can help me out with this problem because I need to hand this one in soon. My problem is I need to make an array of objects. … |
Hello there I am looking for some help. How can I go about creating a list of JPanels in Java? I want them all to have subcomponents, to be created dynamically, and be able to return events. How can I do this? I have checked and I know I will … | |
hello i'm supposed to configure a microcontroller connected by serial port all the way from another machine but i'm having troubles fusing my codes this is my rmi stuff [CODE] import java.rmi.*; import java.rmi.server.*; import java.net.*; public class SerialServant extends UnicastRemoteObject implements Communication { public SerialServant () throws RemoteException { … | |
Okay, so I made a method that will take a Track with the MAXIMUM_RATING, which is 10 and make an another ArrayList for those tracks with the highest rating. [CODE] public ArrayList allTracksWithMaxRating() { ArrayList<Track> maxRatingTracks = new ArrayList(); int i = 0; while (i < tracks.size()) { if (tracks.get(i).getRating() … | |
Okay.... I have been working on this for 3 days now and can not get any further than what I have. Any help would be greatly appreciated... Thank you. Here is what I need to do: Write a program for keeping a course list for each student in a college. … | |
I am doing a project on a print spooler. I am using multithreading to support multiple clients. The problem is that I need another thread on the server side to take care of the printing by extracting jobs from a priority queue. If the queue is empty the thread must … | |
I want to be able to maximize and minimize my applet from a menuItem (in a menu). Right now, I have it set up such that the menuItem is supposed to minimize the window, and another menuItem that is supposed to maximize the window (like the Minimize and Maximize button … | |
I have created a class that builds an embedded database and creates all the tables now I am using a properties sheet for creating the table I would like to use XML to hold elements related to each table in an xml properties file to handle an unlimited number of … | |
Hi, I'm completely new to java. I'm trying the tackle this following scenario. For e.g. I've a list of “Tasks” and their dependencies. E.g. Task D depends on (Task A and Task B) , Task A depends on Task B, Task B depends on Task C. I'm trying to write … | |
Hello all, I wrote a jsp page. It has a form with a submit button that sends the data to some algorithm. I would like the submit button to load a "please wait" html. After the algorithm is done - that "please wait" page will be auto redirected to a … | |
What I want to know is the difference between the development, scalability and cost of ASP.NET(C#) and Java. I know that in most cases Java is slower than C#. But how much slower? I also know that to run .NET we need Windows(excluding Mono). Will the cost of the license … | |
I want to develop a java application for converting indian time to any world time. I also want to include the daylight saving also. Can anyone please tell me the algorithm to convert indian time to world time? | |
Sorry I couldn't think of a better title, but thanks for reading! My ultimate goal is to read a .java file, parse it, and pull out every identifier. Then store them all in a list. Two preconditions are there are no comments in the file, and all identifiers are composed … | |
![]() | Hi guys, First off I would like to mention that I am not an experienced Java programmer. I've been programming for about a year and taken one AP level course in high school. With the exam in a few days, I was wondering if anyone could clear something up for … |
Hello, i'm looking for someone who can do a GUI, Event handling and Mouse Events. You need to have an understanding of UML as well. It's not a relatively big task but i can pay between £20 - 40 for it. | |
hello i need to send and get one char from serial port but i'm making a mess of it so i kept reading a few tutorials in the web in the end i dowloaded and tried a code i found, it works but this thing only sends one string and … | |
Please let me know how to fix this. description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to load class for JSP org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:599) org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:141) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) root cause java.lang.ClassNotFoundException: org.apache.jsp.one1_jsp java.net.URLClassLoader$1.run(Unknown Source) java.security.AccessController.doPrivileged(Native Method) java.net.URLClassLoader.findClass(Unknown Source) org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:134) org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:66) org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:597) … | |
hey there. I have been struggling with separating classes in java and figuring out what methods go in what classes. when i build my apps in one file, i do them right, but when i try to separate classes, i mess up. like for example: I have these two classes: … | |
I am trying to make a program that determines whether a statement is true or false I have this so far:[CODE]public static void main(String[] args) { int w=2,x=3,y=4,z=5; boolean expression; expression = (w<=x)&&(z>=y); if(expression == true); System.out.println("true"); if(expression == false); System.out.println("false"); }[/CODE] ...but all it prints out is true and … | |
HEy guys Have any one of u worked for an insurance company on java. I need to describe what u do in java for an insurance company. I need the description of the projects done for an insurance company in java. please make this quick,. This is emergency. Bye. thankx … | |
Okay so my loop is supposed to check if an item in the ArrayList has the MINIMUM_RATING value which is 1. It does that just fine, but the problem starts when there is more than one item with the MINIMUM_RATING value in it. I need it to stop at the … |
The End.