You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wicket.apache.org by "ganesh.kris@gmail.com" <ga...@gmail.com> on 2010/08/19 22:15:11 UTC
POST request comes as GET in wicket
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<BODY>
<form method=POST action="http://x.x.x.x/rootContext/subcontext">
<INPUT TYPE=text NAME=your_name VALUE="First Last" >
<INPUT TYPE=submit VALUE="Test this form">
</form>
</BODY>
</HTML>
But when I look up
((WebRequestCycle)RequestCycle.get()).getWebRequest().getHttpServletRequest().getMethod().
it comes as "GET" and the parameter list is also zero. I am new to Wicket,
so obviously missing something very simple and basic. Can someone provide
some pointers?
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/POST-request-comes-as-GET-in-wicket-tp2331816p2331816.html
Sent from the Wicket - Dev mailing list archive at Nabble.com.
Re: POST request comes as GET in wicket
Posted by Johan Compagner <jc...@gmail.com>.
when do you test this?
((WebRequestCycle)RequestCycle.get()).getWebRequest().getHttpServletRequest().getMethod(),
and why do you care if it is a get or post?
On Thu, Aug 19, 2010 at 22:15, ganesh.kris@gmail.com
<ga...@gmail.com> wrote:
>
> <TITLE> New Document </TITLE>
> <META NAME="Generator" CONTENT="EditPlus">
> <META NAME="Author" CONTENT="">
> <META NAME="Keywords" CONTENT="">
> <META NAME="Description" CONTENT="">
> </HEAD>
> <BODY>
> <form method=POST action="http://x.x.x.x/rootContext/subcontext">
> <INPUT TYPE=text NAME=your_name VALUE="First Last" >
> <INPUT TYPE=submit VALUE="Test this form">
> </form>
> </BODY>
> </HTML>
>
> But when I look up
> ((WebRequestCycle)RequestCycle.get()).getWebRequest().getHttpServletRequest().getMethod().
> it comes as "GET" and the parameter list is also zero. I am new to Wicket,
> so obviously missing something very simple and basic. Can someone provide
> some pointers?
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/POST-request-comes-as-GET-in-wicket-tp2331816p2331816.html
> Sent from the Wicket - Dev mailing list archive at Nabble.com.
>