Thanks Dave, I have read that. What I am trying to accomplish is to have URLs like the following and I dont know how exactly I can pull it off using Struts 2. The page that you have linked contains a Rails link http://ryandaigle.com/articles/2006/08/01/whats-new-in-edge-rails-simply-restful-support-and-how-to-use-it and in that page there are a lot of advanced things you can do with Rails routes. In particular what I'm trying to do is to support URLs such as:
GET: /users => [:action => 'index'] GET: /users.xml => [:action => 'index', :format => 'xml'] GET: /users/1 => [:action => 'show', :id => 1] GET: /users/1;edit => [:action => 'edit', :id => 1] GET: /users/1.xml => [:action => 'show', :id => 1, :format => 'xml'] POST: /users => [:action => 'create'] PUT: /users/1 => [:action => 'update', :id => 1] DELETE: /users/1 => [:action => 'destroy', :id => 1]also be able to do things like: GET /category/managers/users (which returns all the users under category 'managers') GET /category/managers/users.xml (...in xml format) and I am also not sure how all this is going to work with Struts2 (webwork) namespaces. Thanks, Drew Kutcharian Venarc Inc. www.venarc.com ----- Original Message ---- From: Dave Newton <[EMAIL PROTECTED]> To: Struts Users Mailing List <user@struts.apache.org> Sent: Tuesday, April 17, 2007 1:44:05 PM Subject: Re: Does anyone know how to use Restful2ActionMapper?? --- Drew Kutcharian <[EMAIL PROTECTED]> wrote: > Can anyone explain to me how I can use the new > Restful2ActionMapper? I was not able to find > detailed documentation on it anywhere on the web. > I am trying to write a Rails style RESTful app in > Java. For now, at least, I'd look at the original http://struts.apache.org/2.x/docs/restfulactionmapper.html and the API doc for Restful2. d. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]