Hi I have been having a very difficult time implementing this, basically
what I'd like to do is have Struts match some actions based on the path they
are executed from, but I am not sure how to setup the web.xml for that nor
the struts-config.xml.

Example I'd like:

/mywebapp/navigate.do runs a different action class than
/mywebapp/control/navigate.do

And I am confused at how to setup the struts config to match the /control
part, and how exactly I need to setup the web.xml to map everything to
struts thats *.do.  Right now in web.xml it looks like:
<servlet-mapping>

<servlet-name>action</servlet-name>

<url-pattern>*.do</url-pattern>

</servlet-mapping>



But I'm thinking that if I also add /control/*.do that the struts config
would match navigate from either path to the same class??  I don't know if i
explained myself clearly.. but any help would be greatly appreciated.

Thanks,

David




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to