问题是:在我的动作类中,我有一个变量:
private String commentAdd = "yes";
动作类转到 reslut.jsp,在 reslut.jsp 中我有:
<s:set name="allowAddComment" value="commentAdd"/>
<s:if test="%{#allowAddComment=='yes'}">
<script type="text/javascript">
window.close();
</script>
</s:if>
但它不起作用,有专家可以给我一些建议吗?谢谢。