You might need to add "views.html" before "login.render..."

So the right code should look like as follows (if you maintained the proposed file structure from the play framework documentation):

public static Result login() {
    return ok(

and add of course the right imports (you noticed that already :) )

Related Query

More Query from same tag