Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to Put JSP under WEB-INF  RSS feed

Alec Lee
Ranch Hand
Posts: 569
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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="/"
<action path="/actionB"..>

The above is problematic because the forward path would be replaced by /WEB-INF/module/ according to the forwardPattern I set previously.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!