Search Results

Search found 1 results on 1 pages for 'user1452715'.

Page 1/1 | 1 

  • Play 2.0 framework - POST parameters

    - by user1452715
    I'm trying to POST parameters to Action, and wrote in the routes: Home page GET / controllers.Application.index() POST /login/name:/password: controllers.Application.login(name, password) and I have an Action public static Result login(String name, String password) { return ok(name + " " + password); } my form is <form action="/login" method="post"> <input name="name" type="text" id="name"> <input name="password" type="password" id="password"> <input type="submit" value="Login"> </form> and it doesn't work For request 'POST /login' [Missing parameter: name] what am i doing wrong?

    Read the article

1