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
, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
Blog: http://www.ryanwong.name
Can Use: English, Chinese
--
View this message in context:
http://www.nabble.com/Some-Idea-On-REST-mapping-tp19263471p19270183.html
Sent from the Struts - User mailing list
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
]
-
Blog: http://www.ryanwong.name
Can Use: English, Chinese
--
View this message in context:
http://www.nabble.com/Some-Idea-On-REST-mapping-tp19263471p19270479.html
Sent from the Struts - User mailing list archive at Nabble.com
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 help me to carry
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
in context:
http://www.nabble.com/Some-Idea-On-REST-mapping-tp19263471p19281518.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
://www.nabble.com/file/p19263471/TopicsController.java
TopicsController.java
--
View this message in context:
http://www.nabble.com/Some-Idea-On-REST-mapping-tp19263471p19263471.html
Sent from the Struts - User mailing list archive at Nabble.com
8 matches
Mail list logo