File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts module question

 
Brahim Bakayoko
Ranch Hand
Posts: 155
  • 0
  • 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!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic