I will do it in following manner:

<request-map uri="checkInSession">
       <security https="false" auth="false"/>
       <event type="service"
path="org.ofbiz.ecommerce.general.HelperMethods" invoke="checkInSession"/>
       <response name="response" type="request" value="json" />
       <response name="error" type="none" />
</request-map>

My checkInSession will return Map<String, Object> in response and I will
recv json at my browser ajax callback.

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

> sorry, I have not got it and have to ask again :)
>
> I call a mapping to put things into the request object with that:
>
> /<request-map uri="checkInSession">
>        <security https="false" auth="false"/>
>        <event type="java" path="org.ofbiz.ecommerce.general.HelperMethods"
> invoke="checkInSession"/>
>             <response name="response" type="request" value="json" />
>             <response name="error" type="none" />
> </request-map>/
>
> then the method: checkInSession does the things into the http request
> object
>
> now I dont know how to automatical call the
> "jsonResponseFromRequestAttributes"
>
> or is it automatically called with the "<response name="response"
> type="request" value="json" />" ?
>
> --
> View this message in context:
> http://ofbiz.135035.n4.nabble.com/Response-from-java-Method-to-client-Ajax-call-tp4634402p4634446.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