File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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.
I agree. Here's the link:
subject: mapping wthout .do
Similar Threads
after migrate from 4.0.1 to 4.2.0, cannot load web.xml in .war/WEB-INF
Struts jsps in WEB-INF
Struts portlet on liferay giving Null pointer exception
Regarding creation of servlet endpoint for web service
Servlet program not running