This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

resetting form view values

 
Chris Pat
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
This is a problem I am having w/ struts. I have a page, results_list1.jsp that has an href that calls, add1.jsp. Add1.jsp is the view for the data fields of the object. Add1.jsp has a submit that calls Add1Action. I have an Add1Form w/ Reset method, that is the configured form bean for the Add1Action in the struts-config.xml. The problem is if I attempt to make a second entry off results_list1.jsp with the add1.jsp, the old values are still there. The first time through should not the Add1Form bean have reset the values so the second time add1.jsp comes up they are all blank or their default from the Reset method? How do I make either add1.jsp, Add1Action or Add1Form, clear the values after completion so the second + invocation of add1.jsp is blank on all fields and ready for new input? Sorry for the loquaciousness.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64683
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the Struts forum.
 
Chris Pat
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bear
Thank you for transporting me here,grin. I hope I was not too convoluted in my question. Any help/enlightment from anyone would be appreciated.
Originally posted by Bear Bibeault:
Moved to the Struts forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic