File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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: 9313

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?
subject: struts 2 forms