Using Include And Pass Value : Include « JSP « Java

Using Include And Pass Value

//File: index.jsp
<%@ page errorPage="errorpage.jsp" %>

    <title>Employee Information</title>
    <table width="100%" cellspacing="0">
          <jsp:include page="header.jsp" flush="true">
            <jsp:param name="employee" value="Bob"/>
            <jsp:param name="title" value="Engineer"/>
//File: header.jsp
  out.println("<b>Employee: </b>" + 

  out.println("<br><b>Title: </b>" + 

       88 k)

Related examples in the same category

1.Jsp page includes another Jsp page
2.Jsp Include Static HTML
3.JSP Include
4.Include another file
5.Using Includes
6.Passing parameters during including
7.Forward a request
8.JSP standard action: include