How to configure multiple application support in Struts
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Neetu_Kumar
Posted On:   Saturday, April 19, 2003 05:25 AM

I want to use multiple struts-config.xml in my project for the multiple sub-modules. On My main page(index.jsp), i've 2 options lets say ...Add & View. "Add" is using struts-config.xml , whereas "View" is using "struts-dept-config.xml. "ADd" is working fine, but a call to "View" gives error as :- Unable to process .......
But when i append the contents of "View"(action mappings & rest everyting ) in struts-config.xml, everything works fine. I dont know how to proceed.Plz help.

Re: How to configure multiple application support in Struts

Posted By:   Danilo_Gurovich  
Posted On:   Saturday, April 19, 2003 09:52 AM

Try this action mapping to move toe the "View" module:









Make sure that View.do is located in the struts-dept-config.xml file. I think this should work for you. If you wish, you can also use a global forward here, like:




redirect=”true”/>



This too, would work nicely. I know that this isn't the complete story, but this should get you pretty much were you need to go. Reply back if you're missing any of the pieces.

About | Sitemap | Contact