Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Struts and the fly likes A issue in Struts1.x Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "A issue in Struts1.x" Watch "A issue in Struts1.x" New topic
Author

A issue in Struts1.x

Zhang Jones
Greenhorn

Joined: Feb 02, 2011
Posts: 16


If somebody can help me solve the problem, I would be very grateful!



[Thumbnail for struction.jpg]

vipul bondugula
Ranch Hand

Joined: Oct 14, 2010
Posts: 218
Hi Jones,

You Used PreparedStatement getGeneratedKeys() which returns ResultSet object. ResultSet Need to be checked before using it. I mean before using ResultSet object you need to check whether data is exist or not.

Vipul.



Thanks
Vipul Kumar
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: A issue in Struts1.x
 
Similar Threads
Need immediate help, my job is stuck
<hmtl:checkbox>problem
Struts Validation Empty alert Box
problem in logic:iterate
Help with jsp beans