Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts module question

 
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic