• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Converting to module in Struts 1.2.8

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
reply
    Bookmark Topic Watch Topic
  • New Topic