I am using Spring 2.5 , Spring Security 2.0.4 framework along with GWT .

After setting all the appropriate security filters - I was able to complete a JdbcDao based Authentication from the database successfully.

For a given page - say , landingpage.jsp I want the display different content depending on the different roles , say admin and user.

I have designed landing_admin.jsp , landing_user.jsp separately for the same.

From a given page - say landing_default.jsp (after logging in) - I need the code fragment that can automatically redirect to landing_admin.jsp or landing_user.jsp depending on the role of authentication (ROLE_ADMIN or ROLE_USER etc).

How do I get to access the authentication roles on the client side for a Spring Security configuration. Thanks.