You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by "ganesh.kris@gmail.com" <ga...@gmail.com> on 2010/08/19 22:38:53 UTC

POST request comes as GET in wicket

I post using the following form

  <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>

But when I look up in wicket through
((WebRequestCycle)RequestCycle.get()).getWebRequest().getHttpServletRequest().getMethod(),
the request 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-tp2331840p2331840.html
Sent from the Wicket - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: POST request comes as GET in wicket

Posted by Alexander Morozov <al...@gmail.com>.
Hi!

You may look at Apache Wiki, for example,
https://cwiki.apache.org/WICKET/render-strategies.html.
PRG (post-> redirect -> get) - the default request processing strategy in
the Wicket.
-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/POST-request-comes-as-GET-in-wicket-tp2331840p2332091.html
Sent from the Wicket - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org