日期:2014-05-17  浏览次数:20732 次

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="创建">
<%
}
%>