判斷不爲null, <c:if test="${ not empty null}">般配</c:if>
判斷爲null, <c:if test="${ not empty null}">般配</c:if>
判斷不相等, <c:if test="${ not (1 eq 2)}">般配</c:if>,括號要有,不然not與1先運算出錯
判斷相等, <c:if test="${ 1 eq 2}">般配</c:if>
判斷不爲null, <c:if test="${ not empty null}">般配</c:if>
判斷爲null, <c:if test="${ not empty null}">般配</c:if>
判斷不相等, <c:if test="${ not (1 eq 2)}">般配</c:if>,括號要有,不然not與1先運算出錯
判斷相等, <c:if test="${ 1 eq 2}">般配</c:if>
在JSP頁面中先將中文編碼 import java.net.URLEncoder; <% String z = URLEncoder.encode("中文"); pageContext.
在JDK的安裝目錄的lib目錄下有一個tools.jar文件,拷貝到Tomcat安裝目錄下的common\lib目錄下就行了.
http://www.shsay.com http://blog.csdn.net/ladofwind/article/details/7535387
package my.data; import java.sql.*; public class Fy { Connection cn=nul