This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts and jsp pages behind WEB-INF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts and jsp pages behind WEB-INF" Watch "Struts and jsp pages behind WEB-INF" New topic
Author

Struts and jsp pages behind WEB-INF

david allen
Ranch Hand

Joined: Sep 27, 2002
Posts: 185
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

Joined: Sep 27, 2002
Posts: 185
it is ok I found it
thank you
Johannes de Jong
tumbleweed
Bartender

Joined: Jan 27, 2001
Posts: 5089
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts and jsp pages behind WEB-INF
 
Similar Threads
Protecting JSPs behind WEB-INF and application modules
Hiding jsp pages behind WEB-INF
Should we put JSP in WEB-INF
How to access web pages on internet using tomcat or other webserver?
Applets and tomcat