tried it but with the same problem. i just can't re-enter the execute method after an error.
what helps is to add this: <s:if test="clearErrorsAndMessages()"></s:if> in the message.jsp just after displaying the messages. (and i don't know how to call the method withoud the if statement :( ) tibi Lecoq, Jean-Louis wrote: > > HI, > Did you try to return INPUT; > JLLecoq > > -----Original Message----- > From: tibi [mailto:t...@dds.nl] > Sent: mardi 21 juillet 2009 15:17 > To: users@appfuse.dev.java.net > Subject: [appfuse-user] struts errors > > 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 > > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net For additional commands, e-mail: users-h...@appfuse.dev.java.net