Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Struts module question  RSS feed

 
Brahim Bakayoko
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!