1、include指令:

  语法:

  <%@ include file = "URL" %>

2、include动作:

  语法:

  <jsp:include page = "URL" flush = "true|false" />

    说明:page:要包含的页面;

       flush:被包含的页面是否从缓冲区读取;

3、include指令与include动作比较:

  JSP指令与动作元素

 

4、forward动作:

  语法:

  <jsp:forward page = "URL" />

  等同于:

  request.getRequestDispatcher("/url").forward(request,response);

 

5、param动作:

  语法:

  <jsp:param name = " 参数名"  value = "参数值" >

  常与<jsp:forward >一起使用,作为其的子标签。

 

相关文章:

  • 2022-12-23
  • 2021-06-17
  • 2021-05-21
  • 2021-11-14
  • 2021-06-06
  • 2022-12-23
  • 2021-07-20
猜你喜欢
  • 2021-12-28
  • 2022-01-17
  • 2021-08-19
  • 2021-06-03
  • 2022-12-23
  • 2021-08-20
  • 2021-05-23
相关资源
相似解决方案