Re: JSR311: POSTed form data

From: Bill Burke <>
Date: Fri, 15 Feb 2008 17:29:56 -0500

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:

public String doIt(@Param("param") int param) {...}


Bill Burke
JBoss, a division of Red Hat