title: Using a href link to pass parameters to servlet
body: <p>I have a <code>jsp</code> file where in I have a <code>String</code> variable s. Now I want to pass this to a <code>servlet</code> using <code>servlet</code>.
  In the <code>href</code> tag i gave,</p>
  
  <pre><code>&lt;a href="link?user= &lt;%=s%&gt; "&gt; click me &lt;/a&gt;
  </code></pre>
  
  <p>But it shows an error how else can I send this.</p>
  
  <p>Please help me out..</p>
  
  <p>Thanks</p>