Q
qingcai.wei
I am new to YUI. I looked the datatable example and likes it a lot.
The example used PHP
----------------------javascript side----------------------
this.myDataSource = new YAHOO.util.DataSource("assets/php/
json_proxy.php?");
this.myDataSource.responseType =
YAHOO.util.DataSource.TYPE_JSON;
----------------------PHP side-----------------------------
require_once('JSON.php');
$json = new Services_JSON();
echo ($json->encode($returnValue)); // Instead of json_encode
I wish I could do the same by using java servlet. Does any one have an
example or advice which can help me write some java code that can do
the same as the PHP code above does?
Thanks.
The example used PHP
----------------------javascript side----------------------
this.myDataSource = new YAHOO.util.DataSource("assets/php/
json_proxy.php?");
this.myDataSource.responseType =
YAHOO.util.DataSource.TYPE_JSON;
----------------------PHP side-----------------------------
require_once('JSON.php');
$json = new Services_JSON();
echo ($json->encode($returnValue)); // Instead of json_encode
I wish I could do the same by using java servlet. Does any one have an
example or advice which can help me write some java code that can do
the same as the PHP code above does?
Thanks.