when you enter a username and submit it from the form, you call the action /logon from the struts-config.xml that could look like this:
This action is mapped with a bean named "logonForm" that
you should find also in struts-config.xml described like this
The LogonAction (which extends Action) validates the username.
If the username is ok, you return (mapping.findForward("success"));
If the username is not ok, you return (mapping.findForward("failure"));
Going back to the Strut-config.xml, you can put for exemple in the global-forwards, the mapping for "success"
<forward name="success" path="/mainMenu.jsp"/>
If the user has the right username, it goes to mainMenu.jsp
Same for "failure" : you can redirect him for example back to the logon.jsp
<forward name="failure" path="/logon.jsp"/>
Hope it's clear !!!
V�ronique