
spring mvc web application crud operation
package com.chandra.controller;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.mvc.AbstractController;
@Controller public class LoginController{
@RequestMapping("/Login.htm")
protected ModelAndView viewUserDetails(HttpServletRequest request,
HttpServletResponse response) throws Exception {
return new ModelAndView("Login","welcomeMessage", "UserLogin");
}
}
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.