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". (
http://struts.apache.org/struts-doc-1.2.9/userGuide/configuration.html)
currently, my input param is:
input="/WEB-INF/struts/modules/FOOModule/jsp/foo.jsp"
I want coworkers to be able to have input params like:
input="/WEB-INF/struts/modules/BARModule/jsp/bar.jsp"
developing in WSAD 5.1.2
will deploy to WAS 5
The default struts config is empty, and I want to keep it that way. Our existing WAR has numerous non-struts
servlets. I have added the needed lines to web.xml to use the struts controller. The idea is future development would be in struts, but we don't want to mess with existing code right now. We would like to see all new development occurr in "WEB-INF/struts/modules/YOU_MODULE_NAME" with two subdirectories: "CONFIG" and "JSP". Your module's struts config goes into CONFIG and your module's JSPs go into
JSP. That way, every developer can work independantly of any other developer.
Been trying to get this to work for almost two weeks now. I'm beginning to wonder if it's even possible.
Any help appreciated.
Jason