Source Code : JSTL Request URL And Passing Parameters

Java Is Open Source Programming Language You Can Download From Java and Java Libraries From http://www.oracle.com. Click Here to download
We provide this code related to title for you to solve your developing problem easily. Libraries which is import in this program you can download from http://www.oracle.com. Click Here or search from google with Libraries Name you get jar file related it

JSTL Request URL And Passing Parameters


<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<html>
  <head>
    <title>Query String Example</title>
  </head>

  <body>Your favorite color is: 
  <b>
    <c:out value="${param.color}" />
  </b>

  <br />

  <br />

  Choose your favorite color:
  <br />

  <br />

  <a
  href="<c:out value="${pageContext.request.requestURI}"/>?color=red">
  red</a>

  <br />

  <a
  href="<c:out value="${pageContext.request.requestURI}"/>?color=blue">
  blue</a>

  <br />

  <a
  href="<c:out value="${pageContext.request.requestURI}"/>?color=green">
  green</a>

  <br />

  <a
  href="<c:out value="${pageContext.request.requestURI}"/>?color=yellow">
  yellow</a>

  <br />

  <a
  href="<c:out value="${pageContext.request.requestURI}"/>?color=other">
  other</a>

  <br />
  </body>
</html>


           
       

Thank with us