This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma 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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts 2 forms" Watch "struts 2 forms" New topic

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

Joined: Aug 03, 2008
Posts: 9466

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

Joined: Sep 29, 2008
Posts: 12617

Data from different requests?
I agree. Here's the link:
subject: struts 2 forms
jQuery in Action, 3rd edition