[Opensource] ErrorCollection

Thompson, Kris kris.thompson at seurat.com
Mon Mar 24 10:25:57 PST 2003


Check out the ControllerResponse, it's method call is different, it is saveErrors(ErrorCollection) but I think does in principal the same thing.  Below is example code for using it

		if ( errors.getErrorCount() > 0 ) {
                response.saveErrors( errors );
                log.debug( "image format incorrect" );
                transition( "promptChangeImage", request, response );
                return;
            } 

Does this help?

Kris Thompson

> -----Original Message-----
> From: Jefferson Magno [mailto:jefferson at boavistanet.com.br]
> Sent: Monday, March 24, 2003 4:17 AM
> To: opensource at jcorporate.com
> Subject: [Opensource] ErrorCollection
> 
> 
> Hello all,
> 
> 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?
> 
> Thanks a lot.
> 
> Jefferson
> 
> 
> 
> _______________________________________________
> 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