Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I have this in a login.scala.html file :
- <div id = "id1">
- <label for = "storeID-input">Store ID Number</label>
- <input type = "text" name = "storeID" id = "storeID-input">
- </div>
- <div id = "id2">
- <label for = "employeeID-input">Employee ID Number</label>
- <input type = "text" name = "employeeID" id = "employeeID-input">
- </div>
- <div id = "id3">
- <label for = "name-input">Name (First and Last)</label>
- <input type = "text" name = "name" id = "name-input">
- </div>
- <div id = "id4">
- <label for = "password-input">Password</label>
- <input type = "password" name = "password" id = "password-input">
- </div>
- @form(routes.Application.checkLogin(loginPrompt.checkLogin(storeID, employeeID, name, password))) {
- <input type = "submit" value = "Login" id = "id5">
- }
- I'm receiving this error : "not enough arguments for method checkLogin: (storeID: String, employeeID: String, name: String, password: String)play.api.mvc.Call. Unspecified value parameters employeeID, name, password. "
- In the Application.java file, the checkLogin method is this :
- public static Result checkLogin(String storeID, String employeeID, String name, String password) {
- return ok(views.html.login.render(LoginPrompt.validate(storeID, employeeID, name, password)), loginPromptForm);
- }
- What is wrong, and how do I get rid of this error?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement