jsp页面访问后台方法显示数据
action:
//方法:
public int getScoreCount(String name,String unit)
{
int result = scoreService.getScoreNumberCount(name,unit);
return result;
}
//jsp页面:
<s:set name="na" value="studentDanwei"></s:set>
<a href="javascript:scoregetscoreInfo('<s:property value="studentDanwei" />','<s:property value="unit" />')">
<s:property value="%{getScoreCount(#na,unit)}" />
</a>