只需
value直接放入即可。
<jsp:include page="index.html"> <jsp:param name="type1" value="prerna" /></jsp:include>
或使用JSTL
<c:set>进行设置,并使用EL
${}进行获取。<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>...<c:set var="type1" value="prerna" />...<jsp:include page="index.html"> <jsp:param name="type1" value="${type1}" /></jsp:include>而且,如果您包含的页面是一个jsp,则可以将其用作
${param.type1}


