Hi Gavin,
you have to chain to json request for sending back the response as
json. json request is defined in common-controller.xml
<response name="success" type="request" value="json"/>
HTH
Bilgin Ibryam
On 7 December 2011 13:51, Gavin Mabie <
[hidden email]> wrote:
> Hi
>
>
>
> On sending an ajax request to the controller I get the following message:
> -Could not find response in request "foo" for event return "bar". - My r
>
> <request-map uri="foo">
>
> <security https="true" auth="true"/>
>
> <event type="groovy"
> path="component://content/webapp/content/WEB-INF/actions/content/"
> invoke="foo.groovy"/>
>
> <response name="success" type="view" value="bar"/>
>
> </request-map>
>
>
>
> The groovy script executes ok and I am able to see the result in the log
> files but my page does not seem to be receiving the result of the script.
>
>
>
> Any advice!
>
>
>
> Thanks
>
>
>
> Gavin
>