使用 JSP 包含指令包含文件、JSP 包含操作和使用 JSP 标记文件之间有什么区别? [英] What's the difference between including files with JSP include directive, JSP include action and using JSP Tag Files?
本文介绍了使用 JSP 包含指令包含文件、JSP 包含操作和使用 JSP 标记文件之间有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
用JSP做模板好像有两种方法.包括具有这些语句之一的文件
<%@include file="foo.html" %><jsp:include page="foo.html"/>
或者使用JSP标签文件
//保存为 mytag.tag<%@ tag description="Description" pageEncoding="UTF-8"%><头>头部><身体><jsp:doBody/>