File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Using ActionForm Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Using ActionForm" Watch "Using ActionForm" New topic
Author

Using ActionForm

Priya Venkatesan
Ranch Hand

Joined: Nov 02, 2002
Posts: 61
Iam a struts newbie and I have this basic question about using ActionForms.
My understanding is that when you declare an ActionForm as request scope in struts-config.xml, then the framework would create one if no instance exsits else use the one thats already present.

My Question is:
What happens when multiple requests come in and share the same instance of the ActionForm? If one request calls the reset() fn while the other request is calling validating fn, are they not stepping on each others toes. Is something wrong with my understanding? Please let me know.
Karthik Guru
Ranch Hand

Joined: Mar 06, 2001
Posts: 1209
imo, you answered your question in the beginning.
scope = request --> one form / request.
So if you have multiple requests coming in , it w�d result in as many AcitonForm instances. So it w'dnt result in any conflict.
 
GeeCON Prague 2014
 
subject: Using ActionForm