title: How to force a method to only accept POST parameters in Struts2?
body: <p>I have the following method, which I need to force to accept only POST parameters.
  This method receives id of the selected user to retrieve its object. I need to force this method to just accept posted ids not those sent by GET.</p>
  
  <pre><code>   public class Users{
       private long uid;
  
       public String show() {
              UsersModel usrModel = new UsersModel();
              return usrModel.retrieveUser(uid); //uid paramets will be sent by client to 
                                                //retrieve object of selected user
       }
       ....
     }
  </code></pre>