Le 2012-11-29 à 11:36, Roger Perryman <[email protected]> a écrit :

> Thanks Mike! That clears up some of the fog. I'm still not sure what the 
> "preferred" way is for the community, though. Or is there a preferred way? 
> The annotations are VERY verbose and remind me of Spring/Struts.

They are the same annotations as other REST APIs in Java offers, see:

  http://en.wikipedia.org/wiki/Java_API_for_RESTful_Web_Services

> On Nov 29, 2012, at 11:13 AM, Mike Schrag wrote:
> 
>>>> I never used the annotations. The only time I would use them is if I have 
>>>> to register like 100 controllers, just to not have to do it in Application.
>>> 
>>> If you are not using the @PathParam annotation, then how do you specify the 
>>> parameters for the method? I assume you would use routeObjectForKey to 
>>> access them. Does this mean there is no formal method signature? This would 
>>> be similar to accessing parameters from a DirectAction call.
>> yes … route controller methods ARE direct actions (if you look at the 
>> inheritance hierarchy, you'll see that your controller is a DirectAction). 
>> so without the trickery of the annotations, you would lookup the parameters 
>> using the routeObjectForKey methods, or you can just fall back to standard 
>> DA tools and call request().stringFormValueForKey(..) etc.
>> 
>> ms
> 
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca
> 
> This email sent to [email protected]


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to