GeeCON Prague 2014*
The moose likes Struts and the fly likes struts 1: form data pop up back when the page is visited again? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts 1: form data pop up back when the page is visited again?" Watch "struts 1: form data pop up back when the page is visited again?" New topic
Author

struts 1: form data pop up back when the page is visited again?

jaydip rakholiya
Greenhorn

Joined: Nov 11, 2009
Posts: 2
hiiiiii

i m using struts with forms in my application...the problem is when a form is submitted and after updating database when i visit the same page again the previous form
data comes back in form
...why its happenin???
a kishore
Ranch Hand

Joined: Sep 16, 2009
Posts: 82
Hi jaydip,

May be you are using session as scope in your struts-config file. You can change it to request and try.


-HTH

regards,
kishore
jaydip rakholiya
Greenhorn

Joined: Nov 11, 2009
Posts: 2
a kishore wrote:Hi jaydip,

May be you are using session as scope in your struts-config file. You can change it to request and try.


-HTH

regards,
kishore


hi
thanks a lot...that's the solution...
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: struts 1: form data pop up back when the page is visited again?