| Author |
How reset Struts form?
|
Honzak Troubak
Greenhorn
Joined: Jan 11, 2013
Posts: 24
|
|
Hello guys,
I don't know how reset Struts form after submit.
Here is my form:
After submit of form is shows same page where is this form. But in form are still informations which I inserted in previous step.
Could anybody help me how reset the form? I want to use only Struts without javascript, etc.
I'm using Struts 2.3.4.1.
Thanks
|
 |
Joe Ess
Bartender
Joined: Oct 29, 2001
Posts: 8260
|
|
If you really want to, you could clear out the values in your action after processing them.
Think about the applications you use. In my experience the pattern is that there is a display page, maybe with line items or field names and values, with a link to a page to edit or add a line item. Once one submits the edits, the original page is displayed to indicate that changes have been made.
|
"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
|
 |
Honzak Troubak
Greenhorn
Joined: Jan 11, 2013
Posts: 24
|
|
|
good idea, thank you
|
 |
 |
|
|
subject: How reset Struts form?
|
|
|