File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes A issue in Struts1.x Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "A issue in Struts1.x" Watch "A issue in Struts1.x" New topic

A issue in Struts1.x

Zhang Jones

Joined: Feb 02, 2011
Posts: 17

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: 219
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 Kumar
jQuery in Action, 3rd edition
subject: A issue in Struts1.x
It's not a secret anymore!