Struts2
Prototype.js
function startRequest(m){ 
var prs = 'id='+m;   
             alert(prs);
             var url = 'data.action';
                var myAjax = new Ajax.Request(url,{method: 'post',
                             encoding:'UTF- 8',parameters:prs,onComplete:showResponse,   
                             asynchronous:true });
               
            }
function showResponse(response){
var resp = response.responseText.evalJSON();
for(var i=0;i<resp.length;i++){
        var a = resp[i].pet_name;
        var a = resp[i].birthday;
        var a = resp[i].birthday;
        $("list").options.add(new Option(a,b));
}
程序里private JSONArray json;
json = JSONArray.fromObject(list);
这个我要怎么写才能在页面输出相关的值哈