Task 1 - point to create.jsp & show.jsp
a.Create new Client Form
http://localhost:8080/simple/clients?form
Form:-
1.need (method = RequestMethod.GET) & (method = RequestMethod.POST)
2.POST need (@ModelAttribute("reservation") Reservation reservation,
BindingResult result, SessionStatus status) AS parameter
3.JSP need modelAttribute="reservation"
b.Show Client
http://localhost:8080/simple/clients/2
Answer :- change views.xml +
username : ${client.username}
No comments:
Post a Comment