title: send parameter from jsp to servlet using jsp:useBean
body: <p>I am beginner in java and trying to figure out how to send parameter from jsp to servlet using this</p>
  
  <p>inside my jsp -</p>
  
  <pre><code>&lt;%! String option;%&gt;
  &lt;% option = request.getParameter("option"); %&gt;
  &lt;jsp:useBean id="processBean" scope="session" class="helpers.ProcessBean" /&gt;
  ${processBean.processRequest(option)}  
  </code></pre>
  
  <p>I want to send 'option' to processRequest but this way it is always empty string, so I am doing something wrong.Could not find anything online.
  Any help is highly appreciated.</p>