Hi,
Did you try setting the content to the response as follow?
response.content = { products : ["Jaggery", "ESB"] };
I did not try this but this will possibly work.
Please refer the jaggery doc response section for more details.
Regards.
On Thu, Mar 3, 2016 at 3:45 PM, Irham Iqbal <[email protected]> wrote:
> Hi All,
>
> Is there any way to redirect the page + post the data(json) from a plain
> jaggery file to another jaggery file. I tried with post and
> response.sendRedirect. with post i couldn't redirect the page i only can
> pass the data to that page. With response.sendRedirect i can redirect the
> page couldn't send the json. Is the a way i can do this ?
>
> Thanks,
> Iqbal
>
> --
> Irham Iqbal
> Software Engineer - Test Automation
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
> phone: +94 777888452
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
--
Nipuna Marcus
*Software Engineer*
WSO2 Inc.
http://wso2.com/ - "lean . enterprise . middleware"
Mobile : +94 (0) 713 667906
[email protected]
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev