open flash chart swfobject向servlet传参的解决方案

PS:直接将&替换成%26即可解决!


var data_url = "http://localhost/test.jsp?a=a&b=b";   
data_url = data_url.replace(/&/g,"%26");   
swfobject.embedSWF("open-flash-chart.swf", "ofc_chart", "600", "250", "9.0.0", SWFINSTALL, {"data-file": data_url}); 


你可能感兴趣的:(jsp,servlet,Flash)