[Opensource] ErrorCollection

Michael Rimov rimovm at centercomp.com
Mon Mar 24 11:19:43 PST 2003


At 08:17 AM 3/24/2003 -0300, you wrote:
>I need to create an
>com.jcorporate.expresso.core.controller.ErrorCollection object to pass
>it to a JSP.
>
>Reading the JavaDoc of Controller, I saw it inherits from
>org.apache.struts.action.Action a method called saveErrors() that
>receives as arguments an javax.servlet.http.HttpServletRequest object,
>but I didn't find where I can obtain it. Can you help me?


If you within a controller, what you do is the following.

ErrorCollection ec = new ErrorCollection();
ec.addError("You should have chosen Door #1");
response.saveErrors(ec);

[Where response is the ControllerResponse object handed to your State Handler]

HTH,
                                         -Mike






More information about the Opensource mailing list