wood burning stoves 2.0*
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

mapping wthout .do

amol kat

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

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

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

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

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

Joined: Dec 09, 2004
Posts: 4
OK. Got it.
It is sorta covered in the JavaRanch Style Guide.
subject: mapping wthout .do
Similar Threads
after migrate from 4.0.1 to 4.2.0, cannot load web.xml in .war/WEB-INF
Regarding creation of servlet endpoint for web service
Struts portlet on liferay giving Null pointer exception
Struts jsps in WEB-INF
Servlet program not running