ITeye博客

EL表达式获取集合大小 获取URL地址

softwarexiang120 · 2011-08-05 16:34 · EL表达式获取集合大小 · Web前端 · Markdown

首先:
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
然后:
${fn:length(list)}
数据库连接参数设置字符集
jdbc:mysql://localhost:3306/envsche?useUnicode=true&characterEncoding=utf8

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
String showFile  =  ConfigUtils.getProperty("http.path.serkey").trim();
%>

${pageContext.request.scheme}://${pageContext.request.serverName}:

${pageContext.request.serverPort}${pageContext.request.contextPath}

${pageContext.request.requestURL}

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。