File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts module question