I just read Chuck Cavaness' article "Jakarta Struts: Seven Lessons from the
Trenches" In it he recommends putting the JSP pages underneath WEB-INF. In
the article he shows how to write an action as
<action
  path="/logoff"
  type="org.apache.struts.webapp.example.LogoffAction">
  <forward name="success" path="/WEB-INF/jsp/index.jsp"/>
</action>
However, if the application uses multiple Struts modules, I don't see how
this would work. If the application is foo and the module is bar, wouldn't
the address of the JSP be expanded to
../foo/bar/WEB-INF/jsp/index.jsp
but WEB-INF isn't under bar, so this won't work. If, however, index.jsp is
in directory foo/bar/jsp/ above WEB-INF then
path="/jsp/index.jsp"
expands to
../foo/bar/jsp/index.jsp
which works.
Any idea how to make the URL expansion work when the JSP's are under
WEB-INF.
Thanks,
Al
[EMAIL PROTECTED]


This transmission is intended only for use by the addressee(s) named herein and may 
contain information that is proprietary, confidential and/or legally privileged. If 
you are not the intended recipient, you are hereby notified that any disclosure, 
copying, distribution, or use of the information contained herein (including any 
reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, 
please immediately contact the sender and destroy the material in its entirety, 
whether in electronic or hard copy format. Thank you.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to