Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

mapping wthout .do

 
amol kat
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK. Got it.
Thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic