This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 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.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: mapping wthout .do
Similar Threads
Servlet program not running
Struts portlet on liferay giving Null pointer exception
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 jsps in WEB-INF