Re: JSR311: POSTed form data

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Sun, 17 Feb 2008 10:13:18 -0500

On Feb 15, 2008, at 5:29 PM, 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) {...}
The semantics of GET and POST differ, why would you want to do that ?


Marc Hadley <marc.hadley at>
CTO Office, Sun Microsystems.