No, you have to programtically handle the redirect to the form login page and supply a post to the j_security_check servlet. There is an example of this in the org.jboss.test.web.test.FormAuthUnitTestCase from the testsuite module.
Thanks Scott, that helped :-)
i have the same problem. and i want to write a servlet
the web.xml sound that:
and I write the Servlet1 to handle the login process,but how can i get the orignial url. for example:I come from
when the jboss redirect to the servlet,how can i get the above url and parm?