<request-map uri="json">
        <security direct-request="false"/>
        <event type="java" path="org.ofbiz.common.
CommonEvents"
invoke="jsonResponseFromRequestAttributes"/>
        <response name="success" type="request" value="json"/>
</request-map>

Just use above and u will get the json in your ajax callback.

On Wed, Jul 4, 2012 at 4:01 PM, Robert G. <[email protected]> wrote:

> Ah I think the jason thing is what I need...
>
> so you mean I put it into the request and get it with:
>
> /<request-map uri="json">
>         <security direct-request="false"/>
>         <event type="java" path="org.ofbiz.common.CommonEvents"
> invoke="jsonResponseFromRequestAttributes"/>
>         <response name="success" type="none"/>
> </request-map>/
>
> ?
>
> I dont really know how to handle "json" as I see...the java method writes
> the request object into a json object...so that I can call it maybe with
> ajax...how would i call it?
>
> --> This I can check on json.org :). nevertheless, if you have a fast
> answer, I would be happy :)
>
> --
> View this message in context:
> http://ofbiz.135035.n4.nabble.com/Response-from-java-Method-to-client-Ajax-call-tp4634402p4634441.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
> --
> Thanks,
> Deepak Agarwal,
>
> Paxcel Technologies Pvt Ltd.
> Hartron Complex, Sector 18, Gurgaon, India.
> E-Mail: [email protected]
> Mobile: +91 9910322604
>
>

Reply via email to