title: How to configure struts action to get parameters via post?
body: <p>I'm new to Java EE and Struts2.so i need to find out how to configure struts action to get parameters via post?
  i had this code to get parameters directly from url like this:</p>
  
  <pre><code>@Override
  public ActionForward execute(ActionMapping mapping, ActionForm form,
          HttpServletRequest request, HttpServletResponse response)
          throws Exception {
      response.setContentType("application/json;charset=UTF-8");
      response.setHeader("Cache-Control", "no-cache");
      response.setCharacterEncoding("UTF-8");
      request.setCharacterEncoding("UTF-8");
      JSONObject jsono = new JSONObject();
      JSONArray jsona = new JSONArray();
      String keyword = request.getParameter("kw");
      //do somthing with kw and return response
  </code></pre>
  
  <p>but now i have a long request that i prefer to get it like a post parameter.
  what kind of change i must make in this code</p>