title: Servlet call does not work from jsf page
body: <p>from a jsf page I am calling a servlet that consumes a webservice, when I click send, there is no action, it does not call the servelt.</p>
  
  <p>this is Servlet Parqueo</p>
  
  <pre><code>protected void processRequest(HttpServletRequest request, HttpServletResponse response)
          throws ServletException, IOException {
      ExternalContext ec = FacesContext.getCurrentInstance().getExternalContext();
     Map&lt;String,String&gt; requestParams = ec.getRequestParameterMap();
     String Nombre = requestParams.get("nombre");
     String Tipo = requestParams.get("tipo");
     String Placa = requestParams.get("tipo");
     String Fecha= requestParams.get("fecha");
     String Hora_in = requestParams.get("horain");
     String Hora_out= requestParams.get("horaout");
     if(Hora_in !=null &amp;&amp; !Hora_in.isEmpty() &amp;&amp; Hora_out !=null &amp;&amp; !Hora_out.isEmpty()){
     jaxws.Parking_Service service;
     jaxws.Parking port;
     try{
     service= new jaxws.Parking_Service();
     port=service.getParkingPort();
     String parqueo = port.reserva(Hora_in, Hora_out);
     request.setAttribute("result",parqueo);
     response.getWriter().print( Nombre + "&lt;/p&gt;");
     response.getWriter().print( Tipo + "&lt;/p&gt;");
     response.getWriter().print( Placa + "&lt;/p&gt;");
     response.getWriter().print( Fecha + "&lt;/p&gt;");
     request.getRequestDispatcher("reserva.xhtml").forward(request, response);
     }
  </code></pre>
  
  <p>I receive the data of the index, I save them and I consume the webservice, then I send the data and the result to the page resultado.xhtml</p>
  
  <p>this is index.xhtml from this page I call serlvet</p>
  
  <pre><code>  &lt;h:body&gt;
      &lt;f:view&gt;
       &lt;h:form&gt;
              &lt;h:outputText value="Reserva de Parqueadero "  /&gt;
              &lt;br/&gt;                        
          &lt;h:panelGrid columns="2"&gt;
      &lt;p:outputLabel value="Nombre:" for="nombre" /&gt;
      &lt;p:inputText id="nombre" title="Nombre" required="true" requiredMessage="The Id field is required."/&gt;
      &lt;p:outputLabel value="Tipo:" for="tipo" /&gt;
      &lt;p:inputText id="tipo" title="Tipo" required="true" requiredMessage="The Id field is required."/&gt;      
      &lt;p:outputLabel value="Placa:" for="placa" /&gt;
      &lt;p:inputText id="placa" title="Placa" required="true" requiredMessage="The Id field is required."/&gt;       
      &lt;p:outputLabel value="Hora Ingreso:" for="horain" /&gt;
      &lt;p:inputText id="horain" title="Hora Ingreso" required="true" requiredMessage="The Id field is required."/&gt;       
      &lt;p:outputLabel value="Hora Salida:" for="horaout" /&gt;
      &lt;p:inputText id="horaout" title="Hora Salida" required="true" requiredMessage="The Id field is required."/&gt;        
      &lt;p:outputLabel value="Fecha:" for="fecha" /&gt;
      &lt;p:calendar id="fecha" value="#{calendar.date1}" showOn="button" navigator="true"&gt;&lt;/p:calendar&gt;   
           &lt;/h:panelGrid&gt;
           &lt;br/&gt;
          &lt;h:commandButton value="Enviar" action="/parqueo.do"/&gt; 
      &lt;/h:form&gt;   
      &lt;/f:view&gt;      
   &lt;/h:body&gt;
  </code></pre>
  
  <p>this is result.xhtml </p>
  
  <pre><code>&lt;h:body&gt;
      &lt;f:view&gt;
      &lt;h:outputText value="Nombre" /&gt;
      &lt;h:outputText value="#{session.getAttribute(name)}"/&gt;
      &lt;h:outputText value="Tipo" /&gt;
      &lt;h:outputText value="#{session.getAttribute(tipo)}"/&gt;
      &lt;h:outputText value="Placa" /&gt;
      &lt;h:outputText value="#{session.getAttribute(placa)}"/&gt;
      &lt;h:outputText value="Fecha" /&gt;
      &lt;h:outputText value="#{session.getAttribute(fecha)}"/&gt;
      &lt;f:convertDateTime pattern="MM/dd/yyyy" /&gt;
      &lt;h:outputText value="Resultado" /&gt;
      &lt;h:outputText value="${result}"/&gt;
    &lt;/f:view&gt;
   &lt;/h:body&gt;
  </code></pre>
  
  <p>on this page it should show the data entered and the value returned by the webservice that is parqueo</p>
  
  <p>this is web.xml</p>
  
  <pre><code> &lt;servlet&gt;
      &lt;servlet-name&gt;Parqueo&lt;/servlet-name&gt;
      &lt;servlet-class&gt;controlador.Parqueo&lt;/servlet-class&gt;
  &lt;/servlet&gt;
   &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;Parqueo&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/parqueo.do&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  </code></pre>