Kent Farnsworth

Greenhorn
+ Follow
since May 31, 2000
Merit badge: grant badges
For More
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 Kent Farnsworth

Hi I beleive the problem is the following code.
<%
String title=rs.getString("title");
session.setAttribute("title",title);
%>
This code comes after the resultset has been processed. No more rows exit but you are still trying to get more. title would then be null every time and passed to your view.jsp.
21 years ago
JSP
You should post the error message. I am guessing here since your post does not include the error.
To call a stored procedure use execute not executeQuery, using executeQuery will cause an SQLException, since a call to a stored procedure is not a query.
21 years ago
The method that does the JDBC calls must have the Transaction type as NotSupported, this will stop the JDBC calls from commiting data unwanted data to the database.
After you have restarted the EJB server, do you restart the test application? You will need to restart the test application after dropping the server.
21 years ago
You can set the default button using the following.
getRootPane().setDefaultButton(button1);
Kent
22 years ago
Try something like this.
jcomponent1.setNextFocusableComponent(jcomponent2);
Kent
22 years ago
I just took the SCJP exam and I had a question like this on the exam. I suggest you do not read any more into the question then there is. The fact that the method is deprecated is not the point, it can still be used!