users@glassfish.java.net

Redirect to a page after successful form authentication without first accessing protected resource?

From: hezjing <hezjing_at_gmail.com>
Date: Tue, 12 Apr 2011 13:06:17 +0800

Hi

How can I redirect the user to a page after successful authentication
without him accessing the protected resource?

Imagine the following sequence:

1. User entered http://www.anything.com,
2. User is redirect to a login page, which is also configured as a welcome
page in web.xml,
3. User submits the login form to the server,
4. User is authenticated successfully, and a main page is displayed.



-- 
Hez