title: how do i retrieve data passed thru post in java play
body: <p>this is my code where i need to retrieve data sent in POST: </p>
  
  <pre><code>@play.db.jpa.Transactional
  public static Result registered(String fullname, String email, String password, String username) {
      if(fullname.isEmpty()){
          return badRequest("&lt;p&gt;fehlerhafte eingabe!&lt;/p&gt;").as("text/html");
      } else {
      User user = new User();
          user.fullname = fullname;
          user.email = email;
          user.password = password;
          user.username = username;
          user.save();
  
      }
  
      String success = "Successful registered!";
      return ok(register.render(success));
  
  }
  </code></pre>
  
  <p>and this is my user class: </p>
  
  <pre><code>public class User extends Model {
  private static final long serialVersionUID = 1L;
  public String fullname;
  @Email
  public String email;
  @Required(message="Username erforderlich!")
  public String username;
  @Transient @Required
  public String password;
  
  public User(){}
  
  public User(String username, String password, String fullname, String email) {
      this.username = username;
      this.password = password;
      this.email = email;
      this.fullname = fullname;
      }
  </code></pre>
  
  <p>and this is my html: </p>
  
  <pre><code>    &lt;form method="post" action="@routes.Application.registered()"&gt;
              &lt;p id="login_panel"&gt;@success&lt;/p&gt;
              fullname: &lt;input type="text" name="fullname" id="fullname" value=""/&gt;
              email: &lt;input type="text" name="email" id="email" value=""/&gt;
              username: &lt;input type="text" name="username" id="username" value=""/&gt;
              password: &lt;input type="password" name="password" id="password" value=""/&gt;
              &lt;button type="submit"&gt;Register&lt;/button&gt;
     &lt;/form&gt;
  </code></pre>
  
  <p>and this is in my routes: </p>
  
  <pre><code>POST     /registered                controllers.Application.registered()   
  </code></pre>
  
  <p>What is WSRequest? can this be the clue for my problem? </p>
  
  <p>i appreciate any help! thanks thanks</p>