Internal Website Search

1-2 of 2 resultsRefresh

Step 4: Add a Controller Class

.ModelAndView; @Controller public class GuestController { @Autowired private GuestDao guestDao; @RequestMapping(value="/guest") public ModelAndView guestbook ... )); // Prepare the result view (guest.jsp): return new ModelAndView("guest.jsp", "guestDao", guestDao

Step 4: Add a Controller Class

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