This is not supported. The container has to be doing the authentication in order to allow for forwarding to work.
Ok, thanks CTO.
But i have a suggestion:
THE jboss MBean should/could automatically support custom varial CALLBACK according to j_username/J_password's "j_xyz" pattern, then developer can design its XyzCallBack for his CallBackHandle() and write its LoginForm and LoginModule, so "Automatically Forward" is not dream.
if my suggestion is useful, let me know.