Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Does ActionForm having any number of beans

 
zimbu bolleddu
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Does org.apache.struts.action.ActionForm having any number of beans,

will it impact on performance of application.

And one more thing is can I use more than one Forms in one Action Class.

Thanks in advance
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by zimbu bolleddu:
Does org.apache.struts.action.ActionForm having any number of beans

I assume you mean can an ActionForm reference any number of other beans as properties, and the answer is yes, it can. Obviously, though, there's a practical limit on how much information is reasonable to stuff into one ActionForm bean. The same cautions for memory use would apply here that apply to any Java application.
Originally posted by zimbu bolleddu:
can I use more than one Forms in one Action Class.

You can only have one Action form per action mapping. However, you can use many different action mappings for the same Action Class. This could result in there being different ActionForm beans passed as parameters to the execute method of the same Action class. Example:
 
zimbu bolleddu
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your warm reply
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic