*
The moose likes Struts and the fly likes modular struts-config.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "modular struts-config.xml" Watch "modular struts-config.xml" New topic
Author

modular struts-config.xml

shah rah
Ranch Hand

Joined: Jan 04, 2007
Posts: 124
I tried an module config example and I need to know that if I create a config like Struts-config-module1.xml.. Should I need to create a folder module1 and keep all my jsp files under this.? I have a common folder that has a search page and index page. I have a module1 folder that has employee page.

I am unable to access the common/search.jsp page folder inside my struts-config-module1.xml. How to do this? Search.jsp is common for all my modules.

here is my directory sturucture.

common/search.jsp
common/index.jsp

module1/employee.jsp
module1/thankyou.jsp
shah rah
Ranch Hand

Joined: Jan 04, 2007
Posts: 124
Is there anyone who can guide me with this?
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
I'm not sure what you're trying to do that you're not able to do, but if you want to forward to the JSP, all you have to do is specify the module in the forward. Example:

<forward name="success" path="/search.jsp" module="/common" />


Merrill
Consultant, Sima Solutions
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: modular struts-config.xml
 
Similar Threads
multiple message resource file for multiple struts-config.xml
Struts modules - html:form can't find action
STRUTS 1.1 - Switching between application modules
changing the context
aboout struts-config and properties file in struts application