-- 
Weinan Li
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)


On Tuesday, January 22, 2013 at 9:46 PM, Denica Gencheva wrote:

> Hi, I'm facing the following problem: @Path("/my_path") 
> @Produces(MediaType.TEXT_HTML) public interface MyService { @GET Response 
> readAction(@QueryParam("action") String action); @POST Response 
> postReadAction(@FormParam("action") String action) } $ curl -d "action=test" 
> "http://myserver/my_path"; action: test e.g. the action parameter in the body 
> is read and this is the expected answer. $ curl -d "action=test1" 
> "http://myserver/my_path?action=test"; action: test1 This is also OK, the verb 
> is POST and the action value is test1 (as it is in the body). $ curl -d 
> "action=test" "http://myserver/my_path?action=test";
> 
> 


Could you please explain why you need to send "action" parameter both in 
request param and in form param? 
> action: In this case (action parameter appears as form and query parameter 
> and has a same value) the action parameter value is missing. Can someone help 
> with this one? 
> 
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnnow-d2d
> 
> _______________________________________________
> Resteasy-users mailing list
> Resteasy-users@lists.sourceforge.net 
> (mailto:Resteasy-users@lists.sourceforge.net)
> https://lists.sourceforge.net/lists/listinfo/resteasy-users
> 
> 


------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Resteasy-users mailing list
Resteasy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/resteasy-users

Reply via email to