A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Frameworks
»
Struts
Author
How to Put JSP under WEB-INF
Alec Lee
Ranch Hand
Joined: Jan 28, 2004
Posts: 568
posted
Nov 13, 2005 13:14:00
0
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
struts
automatically insert this prefix by setting:
<controller forwardPattern="/WEB-INF$M$P"/>
However, once I made this change, how could I forward from 1 action to another action? e.g.
<acton ..
<forward name=... path="/actionB.do"
</action>
<action path="/actionB"..>
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:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: How to Put JSP under WEB-INF
Similar Threads
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