JSTL标签中import,redirect标签的使用
2016-11-13 14:29
357 查看
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'jstl1.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
</head>
<body>
<%-- <h4>import标签的使用(导入指定页面)</h4>
<c:import url="http://www.baidu.com" charEncoding="UTF-8"/><br/> --%>
<h4>redirect标签的使用(导入到指定页面)</h4>
<c:import url="jstl1.jsp" charEncoding="UTF-8"/><br/>
</body>
</html>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'jstl1.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
</head>
<body>
<%-- <h4>import标签的使用(导入指定页面)</h4>
<c:import url="http://www.baidu.com" charEncoding="UTF-8"/><br/> --%>
<h4>redirect标签的使用(导入到指定页面)</h4>
<c:import url="jstl1.jsp" charEncoding="UTF-8"/><br/>
</body>
</html>
相关文章推荐
- java学习 jstl中import标签的使用
- jsp页面中使用JSTL标签库的<c:redirect>的一些看法和疑问?
- JSTL中<c:import />标签的简单使用-以和Spring MVC搭配为例
- jsp页面中使用JSTL标签库的<c:redirect>的一些疑问?
- JSTL标签的使用方法
- JSTL标签和EL表达式使用笔记
- jstl标签的使用
- 解决不能使用JSTL标签的问题
- 使用JSTL开发jsp自定义标签开发---迭代标签
- JSTL(标准标签库语言)和EL(表达式语言)的使用简述
- [JSTL]标签的使用
- 使用JSTL开发jsp自定义标签开发
- JSTL function标签使用
- JSTL标签的使用
- JSTL标签--使用
- jsf表达式和jstl的标签混合使用原则
- JSTL core c 标签的使用
- 使用JSTL的标签是需要注意的几点问题
- JSTL function 标签 使用
- Jstl标签使用中出现问题