1 // First: include command: When JSP is converted to servlet, the specified file <% @ page contenttype = "text/html; charset = gb2312 "Language =" Java "errorpage =" %> 2 <% @ Include file = "head. jsp" %> 3 <% @ Include file = "body. jsp" %> 4 <% @ Include file = "tail. jsp" %> 5 // Type 2: <JSP: Include> action element: Introduce the specified file when the JSP page is requested 6 <% @ Page contenttype = "text/html; charset = gb2312" Language = "Java" errorpage = "" %>7 <JSP: Include page = "head. jsp"/> 8 <JSP: Include page = "body. jsp"/> 9 <JSP: Include page = "tail. jsp"/> 10 11 12 // The second method can easily use <JSP: param> to pass parameters to included pages. The method is as follows: 13 <% @ Page contenttype = "text/html; charset = gb2312" Language = "Java" errorpage = "" %> 14 <JSP: Include page = "head. jsp"/> 15 <JSP: Include page = "body. jsp"> 16 <JSP: Param name = "uid" value = "username"/> 17 <JSP: Param name = "PWD" value = "password"/> 18 </Jsp: Include> 19 <JSP: Include page = "tail. jsp"/>