You cannot redirect with POST. Redirects are always GET.
You can use HttpClient/UrlConnection to send a POST request to the other
url and then parse the response to see whether the authentication was OK.

The problem with this approach is that it will need two http worker threads
for a single request. With high load you can deadlock the server.


On Thu, Nov 15, 2012 at 5:23 PM, cosmindumy <cosmind...@yahoo.com> wrote:

> The page at /j_acegi_security_check handles the authentication.
> It waits the authentication details as parameters.
> (/j_acegy_security_check?j_username=usename&j_password=...)
>
> There are two reasons I want wicket form. For validation and also the
> submit
> button know to render his layout.
> On submit I want to redirect on that page as post.
> Maybe there is another wicket solution to redirect or to handle acegi
> authentication.
> Thanks.
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Remove-cookie-problem-tp4653612p4653907.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>

Reply via email to