title: How to process form by <jsp:setBean> and send it to servlet?
body: <p>Could you help me to come up with solution.
  There are JSP-page which sends form parameters to servlet.
  Usually I parse parameters by HttpServletRequest.getParameter() which works fine for forms with tiny parameter numbers.
  Now I'm developing application which has a lot of JSPs with number of parameters and the standard way of form processing is inconvenient.
  I think that possible solution might be by using -action.
  I don't understand whether it works for me.
  I browsed a lot of materials but find nothing about it.
  I mean that there is any information regarding possibility to get form parameters in jsp by ,
  automatically create instance of the entity class,
  map all the parameters to entity-properties and send the entity-instance to the servlet. 
  Please take a look at the code:</p>
  
  <p>index.jsp</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;form method="post" action="NewFormServlet" enctype="application/x-www-form-urlencoded"&gt;
              &lt;jsp:useBean id="client-bean" class="model.entity.Client" scope="request"/&gt;
              &lt;h3&gt;Please enter client information&lt;/h3&gt;&lt;br&gt;
              Client first name&lt;input type="text" name="first-name"/&gt;&lt;br&gt;
                  &lt;jsp:setProperty name="client-bean" property="firstName" value="${requestScope.first-name}"/&gt;
              Client last name&lt;input type="text" name="last-name"/&gt;&lt;br&gt;
                  &lt;jsp:setProperty name="client-bean" property="lastName" value="${requestScope.last-name}"/&gt;
              Client address&lt;input type="text" name="address" size="100"/&gt;&lt;br&gt;
                  &lt;jsp:setProperty name="client-bean" property="address" value="${requestScope.address}"/&gt;
              Client city&lt;input type="text" name="city"/&gt;&lt;br&gt;
                  &lt;jsp:setProperty name="client-bean" property="city" param="${requestScope.city}"/&gt;
              Client postal code&lt;input type="text" name="postal-code"&gt;&lt;br&gt;
                  &lt;jsp:setProperty name="client-bean" property="postalCode" value="${requestScope.postal-code}"/&gt;
              &lt;input type="hidden" name="jsp-identifier" value="client-form"&gt;
              &lt;input type="submit" value="Submit"&gt;
          &lt;/form&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>What is incorrect in this code? Thank you in advance.</p>