define seperate action mappings and depending on the login forward the
guy to the appropriate mapping..

if(user.isSysAdmin()) 
        return mapping.findForward("sysadmin");
else if(user.isAdmin())
        return mapping.findForward("admin");

Hope this helps
Anand Raman

On Mon, Feb 26, 2001 at 03:38:08PM +0800, Eric Wang wrote:
>I am new to Struts and pardon me if this question had been answered previously.
>
>Currently I am working on a login module. How can I forward the user to
>different pages after they had successful login.
>for example, system administrator route to one page. Normal user route to
>another page. Error route to another page.
>
>Thanks in advance.
>Eric

Reply via email to