Passing Parameters to Another JSP Page - Java Servlet JSP

Java examples for Servlet JSP:JSP

Description

Passing Parameters to Another JSP Page

 
<html>
 <head></head>
 <body>
   
 <jsp:include page="callee.jsp">
     <jsp:param name="param2" value="value2"/>
     <jsp:param name="param3" value="value3"/>
 </jsp:include>
   
 Caller:
 param1: <%= request.getParameter("param1") %>
 param2: <%= request.getParameter("param2") %>
 param3: <%= request.getParameter("param3") %>
   
 </body>
 </html>

Related Tutorials