Hi All,
I decided to use modules in this
Struts application I already have.
Setting it up was very simple but I ran into some issues
Default module has a /search action defined. The /forgotpassword is in a
new module "profile".
THe forgot password as well as all the pages in the site is using same
template
(tile). This template has a component that builds a search box and has a
form <html:form action="search"...>
When I run actions from default module all works fine but when I call a
action from profile module I get the annoying
javax.servlet.jsp.JspException: Cannot retrieve mapping for action /search
at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:759)
What's the problem ?
Also one more annoying thing. Due the big amount of modules and config
files I wanted to move the struts-config, validations and tiles-configs
under WEB-INF/config/module_name.The default struts config would be
located in WEB-INF/config but when I start the server I get an error
saying that the struts-config.xml wasn't found in WEB_INF even though
web.xml points to the right location. Is the default module location
hardcoded ?
Thanks for reading,
Q
[ February 11, 2006: Message edited by: Q Master ]