当前位置: 代码迷 >> Java Web开发 >> Struts1标签logic:present ?解决方案
  详细解决方案

Struts1标签logic:present ?解决方案

热度:183   发布时间:2016-04-17 11:08:50.0
Struts1标签logic:present ?
JScript code
<script type="text/javascript">          <logic:present name="RESULT">                  <logic:equal name="RESULT" value="saveSuc">                  window.parent.document.getElementById("error_info_message").value=getOperateInfo_("setup_save_suc");                  </logic:equal>                  <logic:equal name="RESULT" value="saveFail">                  window.parent.document.getElementById("error_info_message").value=getOperateInfo_("setup_save_fail");                  </logic:equal>          </logic:present>        </script>


怎么改成一般的,就是不用s1的标签、?

------解决方案--------------------
<%
String space = "" + request.getAttribute("SPACEISEXIST");
%>

<%
if (!space.equals(request.getAttribute("SPACEISEXIST"))) {
%>

<input type="button" id="subBut1" onclick="javascript:onSub();"
value="创建">
<%
}
%>

  相关解决方案