title: Pass parameters via Hyperlink in JSP
body: <p>I have one jsp page called <code>Allmeters.jsp</code>, In this page i have <code>meterid,consumerid</code> and <code>consumername</code> and I  am having hyperlink on <code>meterid</code> and this <code>meterid</code> value I am passing to another jsp page called <code>meteridinfo.jsp</code>.</p>
  
  <p><code>Allmeters.jsp</code> contains the following code from this i am passing meterid value to <code>meteridinfo.jsp</code>:</p>
  
  <pre><code>&lt;tr&gt;
  &lt;td align="center" bgcolor="#ededed"&gt;&lt;%=SNo%&gt;&lt;/td&gt;&lt;td align="center" bgcolor="#ededed"&gt;
  &lt;a href="meteridinfosuper.jsp?mid=&lt;%=rs.getInt("meterid")%&gt; &amp; consumerid=&lt;%=rs.getInt("Consumerid")%&gt; &amp; consumername=&lt;%=rs.getString("Consumername")%&gt;"&gt;
  &lt;%=rs.getInt("Meterid")%&gt;&lt;/a&gt;&lt;/td&gt;
  &lt;td align="center" bgcolor="#ededed"&gt;&lt;%=rs.getInt("Consumerid")%&gt;&lt;/td&gt;
  &lt;td  bgcolor="#ededed"&gt;&lt;%=rs.getString("Consumername")%&gt;&lt;/td&gt;
  &lt;td  align="center" bgcolor="#ededed"&gt;&lt;%=rs.getInt("LastReading")%&gt;&lt;/td&gt;
  &lt;td align="center" bgcolor="#ededed"&gt;&lt;%=checkdate%&gt;&lt;/td&gt;
  &lt;td align="center" bgcolor="#ededed"&gt;&lt;%=rs.getTime("Time")%&gt;&lt;/td&gt;
  &lt;td align="center" bgcolor="#ededed"&gt;&lt;%=rs.getString("Status")%&gt;&lt;/td&gt;
  &lt;td align="center" bgcolor="#ededed"&gt;&lt;%=rs.getString("Subzone")%&gt;&lt;/td&gt;
  &lt;td align="center" bgcolor="#ededed"&gt;&lt;%=rs.getString("zone")%&gt;&lt;/td&gt;&lt;/tr&gt;
  </code></pre>
  
  <p>meteridinfo.jsp contains the following code to display the meterid value that i got from allmeter.jsp:</p>
  
  <p><code>&lt;tr&gt;&lt;td&gt;
  &lt;input type=hidden name="mid" value="&lt;%=request.getParameter("mid")%&gt;"&gt;
  &lt;label name="name" value="&lt;%=request.getParameter("mid")%&gt;"&gt;&lt;font size="4"&gt;Meter ID : &lt;%=request.getParameter("mid")%&gt;&lt;/font&gt;&lt;/label&gt;&lt;/td&gt;
  &lt;/tr&gt;</code></p>
  
  <p>here i am able to getting the meterid value in this page but the problem is how to pass the consumerid and consumername to meteridinfo.jsp page only i am having hyperlink value for meterid.Please help me.</p>