标签:util 内置对象 demo 维护 jsp https 技术 嵌套 开发
<%@ page import="java.text.SimpleDateFormat" %> <%@ page import="java.util.Date" %> <%@ page contentType="text/html;charset=UTF-8" language="java" %> <html> <head> <title>显示当前时间</title> </head> <body> <%=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date())%> </body> </html>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %> <html> <head> <title>显示当前时间</title> </head> <body> <%@include file="demo.jsp"%> </body> </html>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:forward page="demo.jsp"> <jsp:param name="name" value="hehe"/> </jsp:forward>
<%@include file="demo.jsp"%>
<jsp:include page="demo.jsp"/>
jsp隐含对象名称 | 对应的类型 |
request | javax.servlet.http.HttpServletRequest |
response | javax.servlet.http.HttpServletResponse |
session | javax.servlet.http.HttpSession |
application | javax.servlet.ServletContext |
config | javax.servlet.ServletConfig |
page | javax.servlet.http.HttpServlet |
exception | java.lang.Throwable |
out | javax.servlet.jsp.JspWriter |
pageContext | javax.servlet.jsp.PageContext |
void setAttribute(String name,Object value)
void removeAttribute(String name);
Object getAttribute(String name)
标签:util 内置对象 demo 维护 jsp https 技术 嵌套 开发
原文地址:http://www.cnblogs.com/xuweiweiwoaini/p/7768904.html