35,618 Topics

Member Avatar for
Member Avatar for luvthug

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 …

Member Avatar for luvthug
0
133
Member Avatar for veroniclake

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.

0
64
Member Avatar for sandydeb

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

Member Avatar for peter_budo
0
34
Member Avatar for shella

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 …

Member Avatar for peter_budo
0
425
Member Avatar for ceyesuma

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. …

0
36
Member Avatar for aks_1

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 …

Member Avatar for aks_1
0
61
Member Avatar for DRxACULA

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 …

Member Avatar for javaAddict
0
191
Member Avatar for albert1901

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] …

Member Avatar for sennat_26
0
143
Member Avatar for sajohnson05

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 …

Member Avatar for jwenting
0
128
Member Avatar for BobTheLob

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. …

Member Avatar for moutanna
0
232
Member Avatar for ismithx

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 …

Member Avatar for BestJewSinceJC
0
142
Member Avatar for vitroblue

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 { …

0
32
Member Avatar for Protoroll

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() …

Member Avatar for Protoroll
0
233
Member Avatar for moman1981

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. …

Member Avatar for Rashakil Fol
0
107
Member Avatar for rogue005

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 …

Member Avatar for JamesCherrill
0
77
Member Avatar for IOwnAndPwnU

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 …

Member Avatar for kvprajapati
0
108
Member Avatar for ceyesuma

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 …

Member Avatar for kvprajapati
0
97
Member Avatar for back2grave

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 …

Member Avatar for quuba
0
90
Member Avatar for adam2009

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 …

Member Avatar for javaAddict
0
98
Member Avatar for Agent Cosmic

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 …

Member Avatar for kvprajapati
0
141
Member Avatar for KrishnaDas_003

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?

Member Avatar for masijade
0
104
Member Avatar for Mattpd

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 …

Member Avatar for SasseMan
0
151
Member Avatar for CF019

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 …

Member Avatar for JamesCherrill
0
121
Member Avatar for Nextopia

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.

Member Avatar for jwenting
-2
117
Member Avatar for vitroblue

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 …

Member Avatar for vitroblue
0
154
Member Avatar for sendilkumar06

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) …

Member Avatar for peter_budo
0
612
Member Avatar for bibiki

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: …

Member Avatar for quuba
0
197
Member Avatar for progr

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 …

Member Avatar for progr
0
121
Member Avatar for dumb

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 …

Member Avatar for peter_budo
0
138
Member Avatar for Protoroll

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 …

Member Avatar for Protoroll
0
126

The End.