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 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

Search Discussions

Discussion Posts


Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 5 | next ›



site design / logo © 2016 Grokbase