Struts Tokens - Newbie

D

Dale

Hello,

I'm building a web app, and I want to be able to stop users from submitting
the form twice to the database. For example using the back button to go back
to then click submit again. And co-worker said that a token might work for
this. Has anyone ever used a token, if so would you be willing to share so
of your code so I can figure out what I'm doing wrong. Or can you point me
in the right direction on the web that would give me a good example of a
token in a action class and on the jsp page. Thanks.

-Dale
 
M

Matt Parker

Dale said:
Hello,

I'm building a web app, and I want to be able to stop users from
submitting the form twice to the database. For example using the back
button to go back to then click submit again. And co-worker said that a
token might work for this. Has anyone ever used a token, if so would you
be willing to share so of your code so I can figure out what I'm doing
wrong. Or can you point me in the right direction on the web that would
give me a good example of a
token in a action class and on the jsp page. Thanks.

-Dale

http://www.javaworld.com/javatips/jw-javatip136_p.html

Bob
 

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

Similar Threads


Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top