Re: Some Idea On REST mapping

2008-09-02 Thread Ryan Wong
Thanks so much for those replys I got much clear about the URL patterns I could use with the plugin. Jeromy Evans - Blue Sky Minds wrote: > > Ryan Wong wrote: >> But there is still a question. >> >> With the namespace we have to place the parameter like prefix... >> eg. http://example.org/nam

Re: Some Idea On REST mapping

2008-09-02 Thread Jeromy Evans
Ryan Wong wrote: But there is still a question. With the namespace we have to place the parameter like prefix... eg. http://example.org/namespace/page/1/posts to call postsController index() method. It seems it cannot handle urls like http://example.org/namespace/posts/page/1 The follow one is

Re: Some Idea On REST mapping

2008-09-02 Thread Musachy Barroso
> >> > > I thought the RestActionMapper was already a copy of the RoR convention? I > think it already matches all your mappings except "new" is called "editNew". > I'm no expert though. > > You are right. "new" cannot be used for a method name, hence "editNew". musachy -- "Hey you! Would you h

Re: Some Idea On REST mapping

2008-09-02 Thread Ryan Wong
But there is still a question. With the namespace we have to place the parameter like prefix... eg. http://example.org/namespace/page/1/posts to call postsController index() method. It seems it cannot handle urls like http://example.org/namespace/posts/page/1 The follow one is more easily to ac

Re: Some Idea On REST mapping

2008-09-02 Thread Jeromy Evans
Ryan Wong wrote: Thanks Jeromy... There is not any document about this one.. So i missed that feature... Yeah, the NamedVariablePatternMatcher is only documented within messages in struts-user so far. I quite like it, although messing with the namespace introduces other complications a

Re: Some Idea On REST mapping

2008-09-02 Thread Ryan Wong
Thanks Jeromy... There is not any document about this one.. So i missed that feature... Jeromy Evans - Blue Sky Minds wrote: > > Ryan Wong wrote: >> I have changed the rest action mapper class to apply Ruby Style . >> there is draft, post here to find a better way to build RESTful app with >

Re: Some Idea On REST mapping

2008-09-02 Thread Jeromy Evans
Ryan Wong wrote: I have changed the rest action mapper class to apply Ruby Style . there is draft, post here to find a better way to build RESTful app with struts2 I thought the RestActionMapper was already a copy of the RoR convention? I think it already matches all your mappings except