Marc Hadley wrote:
> On Feb 15, 2008, at 9:02 AM, Bill Burke wrote:
>
>> FYI: The servlet spec makes no distinction from uri query and form
>> parameters, although you can get the query string. IMO, we should
>> have similar mapping.
>>
>> Maybe @Param for unified either/or
>> @QueryParam for URI query
>> @FormParam
>>
>> Flags are ugly and I don't want:
>>
>> @QueryParam(value="param", uri=true)
>> @QueryParam(value="param", form=true)
>>
>
> I don't see much use for the unified case. If you are designing a web
> api you should be pretty clear about where you expect form data in a
> request to go.
>
You've never found it useful in servlets? I mean you could have:
@GET @POST
public String doIt(@Param("param") int param) {...}
Bill
--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com