This week's book giveaway is in the OCP forum.
We're giving away four copies of OCP Java SE 8 Programmer II Exam Study Guide and have Kathy Sierra, Bert Bates, & Elizabeth Robson on-line!
See this thread for details.
Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!

Ron Newman

Ranch Hand
+ Follow
since Jun 06, 2002
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ron Newman

Nitpick: It is never necessary to write code like this:

when you can instead say
14 years ago
Except that the MySQL Connector/J documentation explicitly says to put the driver jar file in jre/lib/ext .
I don't understand your question. Show us some code?
14 years ago
Also, don't use Vector. Use ArrayList.
14 years ago
Take a look at ServletRequest.getRequestDispatcher() and RequestDispatcher.forward() .
14 years ago
How exactly is the servlet invoking the JSP?
14 years ago
Here's what you are missing:
<jsp:setProperty name="jobBean" property="*"/>
This reads all of the form elements and assigns them to the corresponding bean properties.
14 years ago
JSP
When you compiled that class, did it have this statement in it? It needs to:
package netoffice;
14 years ago
JSP
If you are getting this exception, you are doing something wrong!
Don't catch the exception - fix the code.
Do a SELECT, get the value, and then do an INSERT. That seems pretty straighforward.
Tomcat translates your JSP into a servlet class in the package "org.apache.jsp". Other containers probably do something similar.
Since your servlet is in a package, its code cannot access any packageless class. This is a change to Java, as of 1.4.
14 years ago
JSP
Servlet classes do not need to be in packages, though it's a good idea. But any class used by a JSP MUST be in a package.
14 years ago
JSP
Just be aware that this SQL statement probably will not work if you move from MySQL to some other database server.
Since that decision is not visible to you as the user of the JVM, I presume it's implementation-dependent.
14 years ago
Why do you say this is not true?
14 years ago
JSP