• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
David Rocks
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic