• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How reset Struts form?

 
Honzak Troubak
Ranch Hand
Posts: 31
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9214
9
Linux Mac OS X Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Honzak Troubak
Ranch Hand
Posts: 31
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
good idea, thank you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic