aspose file tools*
The moose likes Struts and the fly likes Struts2: REST URLs with Convention plug in - passing params through the URL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2: REST URLs with Convention plug in - passing params through the URL" Watch "Struts2: REST URLs with Convention plug in - passing params through the URL" New topic
Author

Struts2: REST URLs with Convention plug in - passing params through the URL

David Rocks
Ranch Hand

Joined: Apr 24, 2001
Posts: 162
HI,

I am having problems passing parameters to my actions and really I don't know if what I am doing is correct as the documentation is not to clear.

I have an action class with a method



And I can call that OK with

http://127.0.0.1:8080/myapp/action/region

But I want to pass a parameter to it like this

http://127.0.0.1:8080/football/action/region/France

But it looks for a France action, is there anyway to mark the France part as a parameter that can be passed into the above method. I really don't want to have a query string.

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts2: REST URLs with Convention plug in - passing params through the URL