[Opensource] ErrorCollection
Jefferson Magno
jefferson at boavistanet.com.br
Tue Mar 25 02:59:24 PST 2003
Thanks a lot Mike,
I was trying to use the Controller to save ErrorCollection, but now I'll
use the ControllerResponse
[]s
Jefferson
Em Seg, 2003-03-24 às 16:19, Michael Rimov escreveu:
> 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
>
>
>
> _______________________________________________
> Opensource mailing list
> Opensource at jcorporate.com
> http://mail.jcorporate.com/mailman/listinfo/opensource
> Archives: http://mail.jcorporate.com/pipermail/opensource/
>
More information about the Opensource
mailing list