• 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

populated form fields

 
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I use Weblogic 8 , struts 1.1 on win2000

I submit the form on itself. i.e educationalBackground.jsp submits and comes back to educationalBackground.jsp.

Now After successful submission when It comes back to same page , the form fields are populated with most recent values !!!

I can certainly call "formReset()" in javascript to set values to nulls...but is there any other way ?
Thanks
-Anand.
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You could have your Action either call the reset method on the form when it is done with it or the Action can remove the ActionForm from scope (it is stored as an attribute under the key of what name you gave the form-bean in struts-config.xml.
reply
    Bookmark Topic Watch Topic
  • New Topic