This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "modular struts-config.xml" Watch "modular struts-config.xml" New topic

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.


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" />

Consultant, Sima Solutions
I agree. Here's the link:
subject: modular struts-config.xml
It's not a secret anymore!