jsp5 include forward param

jsp5 include  forward   paramjsp5 include  forward   param
date.jsp
  1. <%@page import="java.text.SimpleDateFormat"%>
  2. <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8"%>
  3. <%
  4. Date d=new Date();
  5. SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日");
  6. String s=sdf.format(d);
  7. out.println(s);
  8. %>
Includecommand.jsp
  1. <body>
  2. <h1>Include指令</h1><hr>
  3. <%@include file="date.jsp" %>
  4. </body>

  5. jsp5 include  forward   param

    Include_Action.jsp
    <h1>Include动作</h1><hr>

    <jsp:include page="date.jsp"flush="false"

    jsp5 include  forward   param
    jsp5 include  forward   paramjsp5 include  forward   paramjsp5 include  forward   param