A file is being http posted, how can I reference the parameter by index?

Posted by Blankman on Stack Overflow See other posts from Stack Overflow or by Blankman
Published on 2011-11-26T15:57:01Z Indexed on 2011/11/26 17:52 UTC
Read the original article Hit count: 165

Filed under:
|
|

An XML file is being posted to a url that my spring mvc is responding to.

In .NET, I could do this:

request.Form[0]
request.Form["abc"]

or

request.QueryString[0]
request.QueryString["some_key"]

Now with spring/servlets it seems I can only do this:

request.getParameter("some_key")

or get all the names or values.

When someone is posting a file to a url, using http post, won't this be just a single request parameter then?

Can I get the parameter using index with servlets?

© Stack Overflow or respective owner

Related posts about java

Related posts about Xml