• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

resetting form view values

 
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moved to the Struts forum.
 
Chris Pat
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Eat that pie! EAT IT! Now read this tiny ad. READ IT!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic