-
Aug 2nd, 2012, 04:00 AM
#1
What is path here ?
Spring has form tags ...
Example:
<form:input path="password"></form:input>
What is path here ?
-
Aug 3rd, 2012, 04:17 PM
#2
name of the property in your modelAttribute.
Login.java
{
private String userId;
private String password;
//getters and setters
}
In your LoginController you will add the Login object as model with name "login".
And in your view file login.jsp
<form:form method="post" modelAttribute="login">
<form:input path="password"/> <!-- this will bind the input filed to the model-->
</form:form>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules