Meaningless Drivel is fun!
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
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: 9452

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