This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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********
 
Consider Paul's rocket mass heater.
 
subject: how to use the same form bean in two action class