wood burning stoves 2.0*
The moose likes Struts and the fly likes scope= Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "scope= "request" in structs-config.xml" Watch "scope= "request" in structs-config.xml" New topic

scope= "request" in structs-config.xml

Sreejith kayappuram
Ranch Hand

Joined: Jun 24, 2008
Posts: 35
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"
<forward name="success" path="usersearch.do" />

by removing the scope="request" entry

<action path="/prepareuser"
<forward name="success" path="usersearch.do" />

could any body please tell me whats the purpose of scope= "request" in structs-config.xml

It is sorta covered in the JavaRanch Style Guide.
subject: scope= "request" in structs-config.xml
Similar Threads
I am getting error when starting Tomcat .How can I rectify it?
Deploying struts1.29 appl to struts 1.3.10
Problem with Struts validator
2 actions, same form class different instance?
text field not populating after validate() fails.