Hi,
You don't need to overwrite stream(), just pass your string to
StreamingResolution's constructor (or a reader or input stream)...
Now for your google-specific problem, I have no idea.
Cheers
RĂ©mi
2014-09-27 23:36 GMT+02:00 Heather and Jon Turgeon
tashiba40_evergr...@hotmail.com:
Hi
Hello,
I was wondering is it possible to have an Ajax Call in a Stripes
handler to return an error code and specific body (like a JSON) instead of the
default HTML error message in ErrorResolution. I use StreamingResolution for
returning JSON on successful call and ErrorResolution to
I suppose you mean validation errors in particular? We use something like this
in our AbstractApiActionBean from which all our Api beans inherit from:
/**
* Normally Stripes turns validation errors into HTML, but since this is
an API,
* we turn it into JSON. Returns a JSON or
Sure, you just need to have your action class
implement ValidationErrorHandler. Then you can do what ever you want when
there are validation errors.
http://stripes.sourceforge.net/docs/current/javadoc/net/sourceforge/stripes/validation/ValidationErrorHandler.html
On Tue, Sep 30, 2014 at 9:11
Message: 1
Date: Tue, 30 Sep 2014 10:01:52 -0400
From: Yann Bourdeau ybourd...@mnubo.com
Subject: [Stripes-users] Stripes Ajax calls on error
To: stripes-users@lists.sourceforge.net
Message-ID: d73b7b75-8297-4b87-9298-d37f41842...@mnubo.com
Content-Type: text/plain; charset=windows-1252
You need to implement your own resolution.
ErrorResolution uses the standard sendError() method on
HttpServletResponse. The default behavior of any Java web container is to
set the HTTP response code and then set the text of the error as the
message. This will be returned in text/html format to