title: Passing a value through hyperlink in JSP page
body: <p>I have a very simple JSP page first.jsp that gives reference to so many other JSP pages through hyperlink.</p>
  
  <p>I am trying to pass a value through the hyperlink in first.jsp and retrieve it in second.jsp using request.getparameter(). </p>
  
  <p>I used:</p>
  
  <pre><code>&lt;a href="second.jsp?value=1"&gt;Second JSP&lt;/a&gt; 
  </code></pre>
  
  <p>and in the second.jsp page I used:</p>
  
  <pre><code>alert( "value = " + &lt;%= request.getParameter("value") %&gt;); 
  </code></pre>
  
  <p>but when I try to run the code and click on Second <strong>JSP</strong> I get a 404 page not found error for:<strong><code>second.jsp?value=1</code></strong></p>