Sorry to keep bugging this list, but you have all been so helpful...

I am getting an HTTP error 500 (internal server error) sometime after
the validate method in my form bean returns. I see all of my logging
messages, and there is one entry in the errors list. I see no indication
of problems in any of the tomcat or application logs. The validate
method looks like this:


    public ActionErrors validate(ActionMapping mapping,
                                 javax.servlet.http.HttpServletRequest
request)
    {
        cat.debug("Validate");

        ActionErrors errors = new ActionErrors();

        cat.debug("errors created");

        Object o = request.getSession().getAttribute("currentObject");

        o = null;  // Force error for testing...

        if(o == null) {
           errors.add(ActionErrors.GLOBAL_ERROR,
               new ActionError("error.noCurrentObject"));
        }
        cat.debug("Returning error with " + errors.size() + "
entries.");

        return errors;
    }

Any ideas?

Thanks,
Bryan


--
Bryan Glennon (mailto:[EMAIL PROTECTED])
BPG Consulting, Inc. (http://www.bpgc.com)
Tech Question? (mailto:[EMAIL PROTECTED])

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

Reply via email to