Home » Search

About ModelAndView

1-2 of 2Refresh
Tutorial
127

Step 4: Add a Controller Class

.RequestMapping; import org.springframework.web.servlet.ModelAndView; @Controller public class ... ") public ModelAndView guestbook(HttpServletRequest request) { // Handle a new guest (if any ... ModelAndView("guest.jsp", "guestDao", guestDao); } } The GuestController class is defined as
Tutorial
127

Step 4: Add a Controller Class

.RequestMapping; import org.springframework.web.servlet.ModelAndView; @Controller public class ... ") public ModelAndView guestbook(HttpServletRequest request) { // Handle a new guest ... ): return new ModelAndView("guest.jsp", "guestDao", guestDao); } } The GuestController class