• 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
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

scope= "request" in structs-config.xml

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
One of my jsp form's text field shows previously entered values even when i reload the form after loading other jsps. I have overrided reset method of form bean and hence each time i load the jsp, the form bean contains only null values ( like name field will be set to null in reset method) but the jsp's corresponding text field shows previouly entered values...
it got corrected when i change

<action path="/prepareuser"
type="com.security.ManageUserAction"
name="UserSearchForm"
validate="false"
scope="request">
<forward name="success" path="usersearch.do" />
</action>

by removing the scope="request" entry

<action path="/prepareuser"
type="com.security.ManageUserAction"
name="UserSearchForm"
validate="false"
>
<forward name="success" path="usersearch.do" />
</action>


could any body please tell me whats the purpose of scope= "request" in structs-config.xml
 
Well THAT's new! Comfort me, reliable tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic