jQuery in Action, 3rd edition
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Using ActionForm" Watch "Using ActionForm" New topic

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.
I agree. Here's the link: http://aspose.com/file-tools
subject: Using ActionForm
jQuery in Action, 3rd edition