You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "David people (JIRA)" <ji...@apache.org> on 2009/04/06 13:02:13 UTC
[jira] Issue Comment Edited: (CXF-2154) Cannot get Form values from
MultivaluedMap
[ https://issues.apache.org/jira/browse/CXF-2154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12696036#action_12696036 ]
David people edited comment on CXF-2154 at 4/6/09 4:02 AM:
-----------------------------------------------------------
Ok got that little tool to work.
Here is the output
POST /webapp/webservice/customerservice/temp HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
Accept-Language: en-ie
Content-Type: application/x-www-form-urlencoded
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; iOpus-Web-Automation; .NET CLR 2.0.50727)
Host: localhost:8081
Content-Length: 27
Connection: Keep-Alive
Cache-Control: no-cache
param1=hello¶m2=hfsello
Output on bottom window
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: application/xml
Content-Length: 15
Date: Mon, 06 Apr 2009 10:59:09 GMT
<done>{}</done>
was (Author: devpl):
Ok got that little tool to work.
Here is the output
POST /actrac/webservice/customerservice/temp HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
Accept-Language: en-ie
Content-Type: application/x-www-form-urlencoded
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; iOpus-Web-Automation; .NET CLR 2.0.50727)
Host: localhost:8081
Content-Length: 27
Connection: Keep-Alive
Cache-Control: no-cache
param1=hello¶m2=hfsello
Output on bottom window
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: application/xml
Content-Length: 15
Date: Mon, 06 Apr 2009 10:59:09 GMT
<done>{}</done>
> Cannot get Form values from MultivaluedMap
> ------------------------------------------
>
> Key: CXF-2154
> URL: https://issues.apache.org/jira/browse/CXF-2154
> Project: CXF
> Issue Type: Bug
> Components: REST
> Affects Versions: 2.2
> Environment: Windows XP Java 1.6 tomcat
> Reporter: David people
>
> Hi,
> I'm trying to get All the form fields from a a form which is posted to the restful web service.
> <form method="POST" action="http://localhost:8080/webapp/webservice/customerservice/temp" >
> <input type="text" value="hello" name="param1"/>
> <input type="text" value="hfsello" name="param2"/>
> <input type="submit"/>
> </form>
> I have the following method
> @POST
> @Path("/temp")
> @Consumes(MediaType.APPLICATION_FORM_URLENCODED)
> public String temp(MultivaluedMap<String, String> params){
> System.out.println("Params = "+params);
> return "<done>"+params+"</done>";
> }
> The output is always empty, the size of the params object is zero.
> The very same method used to work in a previous version of CXF.
> Is there a new way to use MultivaluedMap?
> Thanks...
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.