Actually my application have Spring MVC...
I have User.jsp, In this i'm creating some empty form (text boxes, textarea..) I'm Display the form using below method In my Controller class. Below code for add empty form on Front end jsp.
@RequestMapping(value = "user", method = RequestMethod.GET)
public String user(Model model) throws Exception {
model.addAttribute("userForm", new UserForm());
return "profile/user";
}
Now i'm getting UserForm in Database(3 rows).
So .. How to add Model attribute,if we add this one is their any override of model attribute?
How to display this model attribute into Jsp using JSTL?
Please suggest me i'm stuck this point..
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…