title: how to place a request.getParameter("") and place it into a bean.method()?
body: <p>Hi I'm new to java and jsp. I can't get my value from jsp.</p>
  
  <p>Here is my code.
  These are made in jsp.</p>
  
  <pre><code>&lt;h:commandButton action="#{bean1.checkwork}" value="Get Info" type="submit"&gt;
     &lt;f:param name="id" value="#{param['image_id']}" /f:param&gt;
  &lt;/h:commandButton&gt;
  </code></pre>
  
  <p>This is my managed bean code of the method</p>
  
  <pre><code>public String checkwork(){
  
      HttpServletRequest request = (HttpServletRequest)FacesContext.
          getCurrentInstance().getExternalContext().getRequest();
      String image_ID = null;
      if(request!=null){
  
          image_ID = request.getParameter("image_id");
  
          images(image_ID);
          student(matric);
  
      } else {
          System.out.println("fail");                    
          return "successful";
      }
  </code></pre>
  
  <p>I'm so sorry, maybe i add on my faces-config.xml data in, maybe you guys will know whats going on. Because i added the codes that you gave and its giving me null values.
  faces.config.xml</p>
  
  <pre><code>&lt;navigation-rule&gt;
      &lt;from-view-id&gt;/MainPage.jsp&lt;/from-view-id&gt;
      &lt;navigation-case&gt;
          &lt;from-action&gt;#{bean1.checkwork}&lt;/from-action&gt;
          &lt;from-outcome&gt;successful&lt;/from-outcome&gt;
          &lt;to-view-id&gt;chicken.jsp?image_id=#{param['image_id']}&lt;/to-view-id&gt;
      &lt;/navigation-case&gt;
  &lt;/navigation-rule&gt;
  </code></pre>