hi list,

i have a problem with struts errors.

i have a pice of code like this:
   
    public String execute() throws Exception {
        clearErrorsAndMessages();
        log.debug("Get supplier with iFrameCode (name): " + iFrameCode);
        supplier = supplierManager.getSupplier(iFrameCode);
        if (supplier == null) {
            final String error = "Geen aanbieder gevonden met code: " +
iFrameCode;
            addActionError(error);
            log.error(error);
            return ERROR;
        }
        return SUCCESS;
    }

this works fine. but when i get a null supplier i add an actin error (
addActionError(error)) and after that this method is not called anymore.
the error sticks.
how can i clear the error codes?

thanks,

tibi


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net

Reply via email to