struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "CRANFORD, CHRIS" <Chris.Cranf...@setech.com>
Subject RE: Ajax & ActionErrors
Date Tue, 11 Jan 2011 19:14:19 GMT
No I am referring to Struts 2.1.8.1

> -----Original Message-----
> From: Frank W. Zammetti [mailto:fzlists@omnytex.com]
> Sent: Tuesday, January 11, 2011 1:04 PM
> To: Struts Users Mailing List
> Subject: Re: Ajax & ActionErrors
> 
> On 1/11/2011 1:43 PM, CRANFORD, CHRIS wrote:
> > Can someone explain how I can render my action errors when I use
Ajax
> to
> > post a form to the server?
> >
> Assuming you're talking Struts 1... error are rendered via JSP custom
> tags, so to make it work with AJAX, without hacking the framework, all
> you need to do is render the AJAX result using a JSP... the output of
> that JSP can include the errors... you can use a JSP to render JSON
for
> example, or XML if you wish, or some other custom format.
> 
> Frank
> 
> --
> Frank W. Zammetti
> Author of "Practical Palm Pre webOS Projects"
>    and "Practical Ext JS Projects with Gears"
>    and "Practical Dojo Projects"
>    and "Practical DWR 2 Projects"
>    and "Practical JavaScript, DOM Scripting and Ajax Projects"
>    and "Practical Ajax Projects with Java Technology"
>    (For info: apress.com/book/search?searchterm=zammetti&act=search)
> All you could possibly want is here: zammetti.com
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message