aspose file tools*
The moose likes Struts and the fly likes how to use the same form bean in two action class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to use the same form bean in two action class" Watch "how to use the same form bean in two action class" New topic
Author

how to use the same form bean in two action class

gayathri ramesh
Greenhorn

Joined: Jun 19, 2006
Posts: 7
Is it possible to use the same formbean in two different action classes.

If so, How.
Pras Tiwari
Ranch Hand

Joined: Nov 07, 2005
Posts: 186
yes,
you can use same form bean into two different action class.
Just put "name" attribute of action class into struts-config.xml as name of the form bean that u want to use into action class. Also use the scope (request/sesion) accordingly.

pras


********Deserve Before You Desire********
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to use the same form bean in two action class