当前位置: 代码迷 >> Web前端 >> struts标签运用注意
  详细解决方案

struts标签运用注意

热度:234   发布时间:2012-10-06 17:34:01.0
struts标签使用注意

<td align="center"><s:if test="auditUser==operate_user" >
??? ??? ??? ??? ??? <a href="javascript:disapprove ('<s:property value='#iList.operate_object'/>','<s:property value='#iList.operate_subject'/>' )">
??? ??? ??? <img src="<c:out value="${uprrTheme}"/>/img/button/delete.gif " alt="撤销"
??? ??? ??? ??? style="border-width: 0px;" /></a></s:if>
??? ??? ??? ??? ??? <script>
??? ??? ??? ??? ??? function disapprove(vid, subject) {
??? ??? ??? ??? ??? ??? if(confirm("是否确认撤销!")){
??? ??? ??? ??? ??? ??? ???? var form = document.getElementById("approveHref");
??? ??? ??? ??? ??? ??? ??? form.action = '<c:out value="${webapp}"/>/disapprove.action?operateAudit.operate_object='+vid+'&operateAudit.operate_subject='+subject;
??? ??? ??? ??? ??? ??? ??? form.submit();
??? ??? ??? ??? ??? ??? }else{
??? ??? ??? ??? ??? ??????? return ;
??? ??? ??? ??? ??? ??? }
??? ??? ??? ??? ??? }
??? ??? ??? ??? ??? </script>

</td>

  相关解决方案