updates.tag
来自「某石油系统正在使用的实时报表平台系统」· TAG 代码 · 共 30 行
TAG
30 行
<%@ tag body-content="empty" %>
<%@ attribute name="sqlstr" required="true" %>
<%@ attribute name="sqlstr2" required="false" %>
<%@ attribute name="sqlstr3" required="false" %>
<%@ attribute name="sqlstr4" required="false" %>
<%@ attribute name="sqlstr5" required="false" %>
<%@ include file="init.tagf" %>
<c:catch var="errormsg">
<c:choose>
<c:when test="${empty sqlstr2 && empty sqlstr3 && empty sqlstr4 && empty sqlstr5}">
<sql:update dataSource="${tags_tour_dataSource}">
${sqlstr}
</sql:update>
</c:when>
<c:otherwise>
<sql:transaction dataSource="${tags_tour_dataSource}">
<sql:update>${sqlstr}</sql:update>
<c:if test="${!empty sqlstr2}"><sql:update>${sqlstr2}</sql:update></c:if>
<c:if test="${!empty sqlstr3}"><sql:update>${sqlstr3}</sql:update></c:if>
<c:if test="${!empty sqlstr4}"><sql:update>${sqlstr4}</sql:update></c:if>
<c:if test="${!empty sqlstr5}"><sql:update>${sqlstr5}</sql:update></c:if>
</sql:transaction>
</c:otherwise>
</c:choose>
</c:catch>
<c:if test="${!empty errormsg}">
<pre><c:out value="${errormsg}" /></pre>
</c:if>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?