Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Scope of ActionForm

 
Deepika Saxena
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
could any body clarify what is the scope of an ActionForm? I know that each ActionForm is associated with a servlet and thus the scope of an ActionForm is the associated Servlet. Please correct me if i am wrong.

Thanks.
--Deepika.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34401
346
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Deepika Saxena wrote:could any body clarify what is the scope of an ActionForm?

It depends on what you set in the Struts Config file. It could be request or session.

Deepika Saxena wrote:I know that each ActionForm is associated with a servlet and thus the scope of an ActionForm is the associated Servlet.

Is it? There's usually only one servlet and many actions. Actions can have their own forms or share them.
 
Deepika Saxena
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi jeanne,
Thanks for the response and correcting me. If Actions can share Action Forms among them, please let me know how this can be achieved.
--Deepika
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic