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 Does ActionForm having any number of beans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Does ActionForm having any number of beans" Watch "Does ActionForm having any number of beans" New topic
Author

Does ActionForm having any number of beans

zimbu bolleddu
Ranch Hand

Joined: Jan 14, 2008
Posts: 35
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

Joined: Feb 15, 2005
Posts: 4864
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:


Merrill
Consultant, Sima Solutions
zimbu bolleddu
Ranch Hand

Joined: Jan 14, 2008
Posts: 35
Thank you for your warm reply
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Does ActionForm having any number of beans
 
Similar Threads
Has any one created a CMP entity for real with aCMR in a table having 10,000 records?
Limitation on Spring bean definitions
Stateless Session Bean
Inquisition [0.14]- Exam Question - Requried Correct Answer. - overriding in static members.
Beans in Spring