jsp:include 能否实现值的覆盖

<%@ page language="java" contentType="text/html; charset=UTF-8"

    pageEncoding="UTF-8"%>

<!DOCTYPE html>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title></title>

</head>



</html>

如上所示head里面的title标签,在另一个界面整体include这个页面,另一个界面如何直接填充这个title中的值


达令说
浏览 471回答 1
1回答

浮云间

直接加参数传进去就行啦<jsp:include page="/url" flush="true">&nbsp; &nbsp; <jsp:param value="aaa" name="title"/></jsp:include><%@ page language="java" contentType="text/html; charset=UTF-8"&nbsp; &nbsp; pageEncoding="UTF-8"%><!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title><%=title%> </title></head></html>
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java