<jsp:include page= "callee.jsp"/>
<jsp:param name= "param2" value= "value2"/> <jsp:param name=
"Param3" value= "Value3"/>
</jsp:include>
The include instruction is introduced statically;
The include action is introduced dynamically.
Static and dynamic include is independent of the content of the page.
Unlike the <% @include ...%>, Jsp:include can pass parameters to the included page.
However, if the parameter is passed, the included page must be a JSP page.
For example: Pass parameters to the included page included2.jsp:
<jsp:include page= "included2.jsp" flush= "true" >
<jsp:param name= "Ref1" value= "AAA"/>
<jsp:param name= "Ref2" value= "BBB"/>
</jsp:include>
Page Property: Relative path indicates the included file
Flush property: You must use TRUE to indicate that the page can be refreshed.
You can use Jsp:param to pass parameters to the included dynamic page, which is the JSP page (while the include directive cannot), the parameters are passed as "parameter name-value" pairs, and the included pages use Request.getparameter ("parameter name") to get the value of the corresponding parameter
Expression: $ (param.name) is the equivalent of Request.getparameter (name).
Original: http://blog.csdn.net/sz_bdqn/article/details/7365260