Mega Code Archive

 
Categories / Java / JSP
 

Using Include And Pass Value

//File: index.jsp <%@ page errorPage="errorpage.jsp" %> <html>   <head>     <title>Employee Information</title>   </head>   <body>     <table width="100%" cellspacing="0">       <tr>         <td>           <jsp:include page="header.jsp" flush="true">             <jsp:param name="employee" value="Bob"/>             <jsp:param name="title" value="Engineer"/>           </jsp:include>         </td>       </tr>   </body> </html> /////////////////////////////////////////////////////////////// //File: header.jsp <%   out.println("<b>Employee: </b>" +      request.getParameter("employee"));   out.println("<br><b>Title: </b>" +      request.getParameter("title")); %>                     UsingIncludeAndPassValue.zip( 88 k)