This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes struts 2 forms 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 "struts 2 forms" Watch "struts 2 forms" New topic
Author

struts 2 forms

Rajiv Chelsea
Ranch Hand

Joined: Jun 15, 2010
Posts: 88
In struts 2, how do we ensure that data from different requests is not mixed?
In struts 1, there was a reset method in ActionForm which ensured this.
Similarly what does Struts 2 have to ensure the same?
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

Struts 2 actions are not reused, each request is served by a different instance of the action class so there is no chance of requests getting mixed up...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Data from different requests?
 
Consider Paul's rocket mass heater.
 
subject: struts 2 forms
 
Similar Threads
Struts interview questions
Struts 2 and effective testing
Action class in Struts
WA #1.....word association
Getting response values in a text box