Okay. So thinking this through for a second, obviuosly the JRE cannot compile JSPs because it hasn't got a compiler. So a more realistic question is, can you precompile jsps and deploy them in a war file?
Hi,
Having developed a struts application using Tomcat 4.1.24 and JDK 1.3.1_06, I tried mocking up the client's WIN2K machine environment with JRE 1.4.0. After getting past the bug in setclasspath.bat (deleting the tests for jdb and javac, which will not exist in the JRE), I find that the JSPs...
How interesting. Yes, Java provides default constructors but I suspect Java does a special and actually makes the default constructor as required if it cannot find another constructor. getConstructor() only displays real constructors.
Not much help really...
scrat
Hi,
Could anyone please confirm whether the old Oracle method of doing table joins with the (+) syntax still works on Oracle 9. It seems as though O9 supports ANSI standard join syntax like ...from courses c INNER JOIN enrolment e...
I need to assess the impact of migrating to O9 without the...
Hi Knackers,
Java receives MouseEvents from your system. There are two listeners for MouseEvent; MouseListener and MouseMotionListener. MouseListener just gets the click events whereas MouseMotionListener gets every change in position of the mouse. Normally you use MouseListener.
There are a...
Hi Perseus,
Classes are loaded in the order defined by the classpath. If you have duplicate classes in the classpath, the first one found will be used. I do not know that you can verify which classes are loading. Ideally you should not have duplicates of the same class location in your...
Hi Jeff,
Yeah, this is a common problem. Although repaint() will redraw the screen, System is not going to get a chance to do the update because you are doing your database processing.
Having said that, I notice there is a repaint() method that takes a long value to do the Component update...
Hi Jisoo22,
JButton extends AbstractButton, which has a method getText(), which will return the button label. You may experience difficulty referencing your JButton from the inner ActionListener class. The following does the same but uses an anonymous inner class to get access to the getText()...
Hi Doug,
If you subtract 256 from any of the numbers that are greater or equal to 128, that would translate 0 to 255 into -128 to 127. You would have to add 256 again to negative number on retrieval.
scrat
Hi,
Try copying your entire error message into a Google search (www.google.com). It looks like it is a known problem with Jbuilder, but I know nothing about that.
Hi Patricktwo,
It looks like it can not find FirstNameException. Presumably you have written this somwhere else but is not visible to checkFirstNameInput(). Without seeing how it is written, I can not guess what is wrong.
The following compiles and might be some help:
String sFirstName...
...that are required to be an ActionListener and a MouseListener. The following implements all the methods required to compile.
import java.awt.*;
import java.awt.event.ActionListener;
import java.awt.event.MouseListener;
import java.awt.event.MouseEvent;
import java.awt.event.ActionEvent...
Hi Bean,
There is a wonderful book by David Flanagan called Java Examples in a Nutshell. It has an number of examples which are available at http://www.oreilly.com/catalog/jenut2/ and one of these is an applet clock. It is not exactly what you asked for but should enlighten you in the...
Hi JoE,
One solution would be to maintan a static count of your class. Static variables exists only once per class, irrespective of the number of instances of that class. The idea is to increment the count each time a class is created and decrement the count at finalization.
class Person {...
Hi Larson,
You do not need to explicitly define your method as throwing NullPointerException because it is a descendant of RuntimeException, which can be thrown during the normal operation of the Java Virtual Machine. If you want to track down exactly where your app is trying to use a null you...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.