Meaningless Drivel is fun!*
The moose likes Struts and the fly likes Struts module question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts module question" Watch "Struts module question" New topic
Author

Struts module question

Brahim Bakayoko
Ranch Hand

Joined: Aug 29, 2003
Posts: 155
Consider:

<html:form action="/doSomething">
...
</html:form>

Let's say the action "/doSometing" is defined in struts-config.xml, but I am in module "store" with jsp containing the form above.

Websphere is forcing me to define in the struts-config-store.xml something like:
<action
path="/doSometing"
type="org.apache.struts.actions.ForwardAction"
parameter="/doSometing.do" >
</action>

otherwise I get a warning saying that the path is not found in the module.

Why is that?
Why can't the form action path reference the definition in the default struts config directly?

Thanks!


SCJP, SCWCD, SCBCD, IBM CSD WebSphere v5, <br />A+, MCP 2000 and 2000 server, CST, and few incompleted certification tracks.<br /> <br />Ivory Coast<br /> <br />Analyze your web Request/Response @ <a href="http://webtools.servehttp.com" target="_blank" rel="nofollow">http://webtools.servehttp.com</a> down for a while...
 
 
subject: Struts module question
 
Similar Threads
struts 1.3.5 tags-html attributes syntax error
Struts modules - html:form can't find action
Error:ActionMappings not found for second module
Combining two different struts modules of a big application
help with module level struts config