I'm trying to use J2EE Servlet form based authentication by
posting to the well-known url j_security_check. In my web.xml file
I specify FORM authentication and my custom Flex login page. Upon
accessing a protected resource, I am redirected to my login page as
expected. Upon successful login the server sends an HTTP redirect
back to the protected resource, but I can't figure out how to
capture this redirect. My fault method will get called if I use the
wrong password, however the result method does not get called,
probably because it is a redirect. The server is actually
authenticating the user, because if I access the protected resource
again in the same session it works fine.
How can I get the HTTPService to follow a redirect, or at
least how can I get notification that the call has completed?
I'm using Tomcat in JBoss and the following code demonstrates
the problem, even without configuring web.xml.