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 mapping wthout .do Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "mapping wthout .do" Watch "mapping wthout .do" New topic
Author

mapping wthout .do

amol kat
Greenhorn

Joined: Dec 09, 2004
Posts: 4
I want to map the following url to a particular action class
URL: http://hostname/webappname/service/soap/

In web.xml I tried something like this
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>/service/soap</url-pattern>
</servlet-mapping>

And in struts-config,
<action path="/struts-example/services/rest" type="my action class" >
</action>

I tried various configuration with subtle differences to the above.
Is this possible?
amol kat
Greenhorn

Joined: Dec 09, 2004
Posts: 4
Sorry for the typo.
struts-config is
<action path="/struts-example/services/soap" type="my action class" >
</action>

So ultimately what I would like to do is have separate action classes to handle various request formats like soap/rpc/REST, etc
amol kat
Greenhorn

Joined: Dec 09, 2004
Posts: 4
OK. Got it.
Thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: mapping wthout .do