jsp 頁面嵌java程式碼(小指令碼)
阿新 • • 發佈:2019-01-01
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%> <%@ include file="/WEB-INF/jsp/Header.inc" %> 在工程中搜索.tld 檔案可以檢視相關標記的說明:<[qy.tld]> <% String nextNodeID = SystemParamUtil.getSystemParamValue("0000001"); request.setAttribute("nextNodeID", nextNodeID); String completeNodeId = SystemParamUtil.getSystemParamValue("0000002"); String checkNodeId = SystemParamUtil.getSystemParamValue("0000003"); String baseTemplateId = SystemParamUtil.getSystemParamValue("0000004"); request.setAttribute("checkNodeId",checkNodeId); request.setAttribute("baseTemplateId",baseTemplateId); request.setAttribute("completeNodeId",completeNodeId); %> <isap:if test="${completeNodeId == problemWorkItem.nodeId }"> <isap:column width="14%"> ${fn:substring(problemWorkItem.completeTime,0,fn:indexOf(problemWorkItem.completeTime,'.'))}; </isap:column> </isap:if> <div id="processHistoryDiv${problemWorkItem.workItemId}" width="99%"></div> <isap:iterator id="problemWorkItem_inner" value="#request.problemWorkItems" status="1" > <isap:if test="${(problemWorkItem_inner.nodeId == nextNodeID) || problemWorkItem_inner.workItemId == ''}"> <isap:if test="${problemWorkItem.nodeName == '系統'}"> <div id='woHandlerInfoDiv${problemWorkItem.workItemId}' width="99%"></div> </isap:if> </isap:if> </isap:iterator> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> <base href="<%=basePath%>"> <div id='PhaseSuggestTable${problemWorkItem.workItemId}' width="99%" style="display:none"> // 屬性控制 function showPhaseSuggest(workItem) { cTitleImg('hideIcon','PhaseSuggestTable' + workItem); var PhaseSuggestTable = document.getElementById('PhaseSuggestTable' + workItem); if ( PhaseSuggestTable && PhaseSuggestTable.style.display == "block" ) { var PhaseSuggestContent = document.getElementById('PhaseSuggestContent' + workItem); if ( PhaseSuggestContent ) { PhaseSuggestContent.focus(); } } } svn update to head 是把你本機工作區的版本更新到伺服器上最新版本; update to version xxx 是讓你選擇更新到哪個版本(可以show log檢視工作區所在路徑的url對應版本資訊) reference: <[http://www.cnblogs.com/chenssy/p/3426642.html]> 基礎知識: 在沒有實現 equals() 的物件上呼叫了 equals() 方法 public static final String FLAG = "0"; ParamDisposalUtil.FLAG == ds.getFlag() 1) 物件域.使用equals方法 . 2) 型別安全的列舉.使用equals或== . 3) 可能為null的物件域 : 使用 == 和 equals . 4) 陣列域 : 使用 Arrays.equals . 5) 除float和double外的原始資料型別 : 使用 == . 6) float型別: 使用Float.foatToIntBits轉換成int型別.然後使用==. 7) double型別: 使用Double.doubleToLongBit轉換成long型別.然後使用==. document.oncontextmenu = function() {return false;}; 覆蓋了原先的事件return false;代表什麼也不幹 直接返回,所以相當於右鍵選單不響應任何操作; 通俗講就是被遮蔽掉,此程式碼有瀏覽器的限制,在IE中,火狐中效果是不一樣的; <body onload="aLoad()"> <iframe id="callInfo" src="<%=basePath%>/callInfoBar.action" width="100%" height="277" frameborder="0" scrolling="no"></iframe> <iframe id="customerInfo" src="<%=basePath%>/getContactItem.action" width="100%" height="577" frameborder="0" scrolling="no" ></iframe> </body> http://www.dynatable.com/ http://www.multisilicon.com/blog/a34212751.html 切換 svn 分支