Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

modular struts-config.xml

 
shah rah
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there anyone who can guide me with this?
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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" />
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic