Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts and jsp pages behind WEB-INF

 
david allen
Ranch Hand
Posts: 185
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI all,

I would like to place my jsp pages behind WEB-INF and use struts-config.xml to redirect them.
If my jsp are located at WEB-INF/jsp/%.jsp and I want to use the global forward to another page how do I do it. I am always getting page not found.

I currently have path="/jsp/somePage.jsp"

but the url it creates is
localhost/my-site/jsp/somePage.jsp

Any pointers would be great thank you
 
david allen
Ranch Hand
Posts: 185
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it is ok I found it
thank you
 
Johannes de Jong
tumbleweed
Bartender
Posts: 5089
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi David, a small tip, people love it when you post what you found, so they don't make the same mistake. I'm glad you fiund the problem though
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic