A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Arduino in Action
this week in the
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
How to Put JSP under WEB-INF
Joined: Jan 28, 2004
Nov 13, 2005 13:14:00
I am placing JSPs under WEB-INF and is using modules in Struts. The advice I got is to use this forward value:
<forward name=... path="/myview.jsp" />
i.e. without bothering the "/WEB-INF/module" prefix. At the same time, we should just let
automatically insert this prefix by setting:
However, once I made this change, how could I forward from 1 action to another action? e.g.
<forward name=... path="/actionB.do"
The above is problematic because the forward path would be replaced by /WEB-INF/module/actionB.do according to the forwardPattern I set previously.
I agree. Here's the link:
- it saves me about five hours per week
subject: How to Put JSP under WEB-INF
SwtichAction and forwardPattern attribute
How to share actions and JSP's among sub applications?
Spring MVC behaviour for Struts
Hide Module JSP pages under WEB-INF
Using ActionMapping to open a https page
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013