title: How to retrieve the value of an Http Request parameter into a Servlet?
body: <p>I am absolutly new in J2EE and this if my first time that I implement an <strong>HttpServlet</strong></p>
  
  <p>In my <strong>web.xml</strong> file I have putted the following configuration:</p>
  
  <pre><code>&lt;servlet&gt;
      &lt;servlet-name&gt;salwf&lt;/servlet-name&gt;
      &lt;servlet-class&gt;it.sistinf.ediweb.monitor.servlets.Salwf&lt;/servlet-class&gt;
      &lt;load-on-startup&gt;0&lt;/load-on-startup&gt;
  &lt;/servlet&gt;
  
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;salwf&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/salwf.do/*&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p>So this servlet is performed for the <strong>/salwf.do/*</strong> pattern into the HTTP REQUEST.</p>
  
  <p>Into the <strong>service()</strong> method of my servlet I found something like it:</p>
  
  <pre><code>String service = req.getParameter("serv");
  </code></pre>
  
  <p>So what exactly do this line? I think that it retrieve the value of a GET paramether named <strong>serv</strong> inside the HTTP Request.</p>
  
  <p>So for example if in my browser I put something like it:</p>
  
  <pre><code>http://localhost:7001/salwf.do/myPage?serv=1
  </code></pre>
  
  <p>it is retrieved the "1" value of the <strong>serv</strong> parameter?</p>
  
  <p>Is it correct or am I missing something?</p>
  
  <p>Tnx</p>