aspose file tools*
The moose likes Struts and the fly likes Defining form bean in 1 struts-config and action in another struts-config.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Defining form bean in 1 struts-config and action in another struts-config.." Watch "Defining form bean in 1 struts-config and action in another struts-config.." New topic
Author

Defining form bean in 1 struts-config and action in another struts-config..

praveen kumar gowda
Greenhorn

Joined: Feb 20, 2012
Posts: 23
Hi guys We know we can have more than one struts-config files.....

so,is it possible to declare form bean...defination in 1 struts-config and assign form bean in another struts-config...
say,

struts-config1

<form-bean name=myform type="/mydoubts/myform"/>

struts-config2
<action path="/logout"
type="com"
name="myform"
forward="success" parameter="method" scope="request">
<forward name="success" path="/pages/flexoutput.jsp" />
</action>
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Defining form bean in 1 struts-config and action in another struts-config..