jsp - fetching fresh inserted data - reload issue?  
Author Message
jonas.donas





PostPosted: 2005-9-26 21:47:00 Top

java-programmer, jsp - fetching fresh inserted data - reload issue? hi ng,

i have a form, where a user can input some data.
after pressing submit, the controller.jsp makes some
validations and shall list up this new entry.
in short, my problem is, that this newest entry is
not shown - but is correctly inserted into the db.

+ form.jsp : holds the form
+ controller.jsp : inserts form data into db,
and queries the db to show the newest entry.

after refreshing the site by hand, the newest entry
is listed, BUT also in the db (duplicate in db!).
i tried some java script solutions, top.mainFrame.location.reload()
and adding some META-TAG in the HEAD-Tag of HTML, but no
effects...

feedback is appreciated, thanks in advance.

with regards,
jonas

 
jonas.donas





PostPosted: 2005-9-27 17:54:00 Top

java-programmer >> jsp - fetching fresh inserted data - reload issue? hi all.

problem is now solved. the entries were correctly written into the db,
but were listed falsly -> one next() was too much.

greets,
jonas