• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

modular struts-config.xml

 
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there anyone who can guide me with this?
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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" />
 
reply
    Bookmark Topic Watch Topic
  • New Topic