At 1:58 PM -0500 5/16/06, David Durham wrote:
Berk, Jason R. wrote:
I'm using struts 1.2.9 which the struts site claims is the "prime time"
ready version.
I would like to use modules and put my JSPs behind WEB-INF to protect
them. When I try this with struts, it rewrites my URL with the module
name and causes 404 errors on validation failures.
I read all over the net that I need to change my forwardPattern &
pagePattern in my controller to "/WEB-INF/$M$P", but again, the struts
site docs explicitly state that anything other then $$, $M and $P are
"silently swallowed".
Been trying to get this to work for almost two weeks now. Any help
appreciated.
The thing is that The Browser can not request /WEB-INF/..., but a
RequestDispatcher will happily "forward" to /WEB-INF/...
Does this answer your question?
Also, note that you do not need to use modules to hide your pages
behind WEB-INF, as David noted. Don't use them if that's all you
want to do. You should only use them if you really need them. (I
just found a handful of bugs in Struts 1.3 related to modules;
modules are infrequently used by the Struts community, which I think
will lead to your team being surprised by certain things as well as
possibly having a hard time finding good support here with them.)
Joe
--
Joe Germuska
[EMAIL PROTECTED] * http://blog.germuska.com
"You really can't burn anything out by trying something new, and
even if you can burn it out, it can be fixed. Try something new."
-- Robert Moog
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]