jsp - fetching fresh inserted data - reload issue?

J

jonas.donas

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
 
J

jonas.donas

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,024
Latest member
ARDU_PROgrammER

Latest Threads

Top