I am new to Struts and I am having a hard time. I setup break points to
watch my code.  WASD stops at the ActionForward and then if I try to step
into the code it jumps to the findForward.  Why is the code that checkk my
username not getting called?

public final class Page1FormAction extends Action {


    public ActionForward perform(ActionMapping mapping,
                                 ActionForm form,
                                 HttpServletRequest request,
                                 HttpServletResponse response)
        throws IOException, ServletException {
                
                
        String username = ((LogonForm) form).getUsername();
        String password = ((LogonForm) form).getPassword();
        
        if(username.equals("userj"))
        {
                ((LogonForm)form).setUsername("Good");
        }

        // mark start of survey operation
        saveToken(request);


        return (mapping.findForward("next"));





--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to