I am facing a problem of resubmition in struts. I had filled a page and submitted it. its is gone to my db and agin redirected to the same page . All data that i previously entered is filled in those fields. and if i am ginve refresh by right clicking the broswer the last trasaction agin happening and the page get submitted. HOw can i resolve this page
Well Struts 2 has the token interceptor to handle this. You just have to configure it into your action, and use <s:token/> tag in your form which gets submitted. I saw somewhere on the internet that you might need to add this type of result to your action
I can't really figure out what you're trying to say, but am quite suspicious of the action chaining. There's almost *never* a reason to do action chaining. If you're on the page that chained to the "ListQuestionCategory" action and refresh the page you'll re-submit--the chain isn't a new request.
You might want to look up the post-redirect-get (or whatever it's called) for why it happens and some ways to avoid it.
Wht i want to do is..
I had page which displays list of category. and i have a text box and a submit button to insert new category
i have an insert method inside my action class through wich i am insring the new entry. so on the submit button click i am calling that method. But i am filling the list that need to be show in the page is in exec method. So when i am calling the insert method and dircting to the same page it wont lits those which i inserted