DateTimeFormater Class usefull while working with dates in java
This Class will become very usefull when you are dealing with Dates in Java. This class provides method which you can call based on your needs.

springmvc org.springframework.web.servlet.DispatcherServlet 1 springmvc *.html jsp/index.jsp
Map URL /hello_world.html to Controller HelloWorldController Declare View Resolver: when view 'view_name' is called (from the Controller), the file '/jsp/view_name.jsp' will be used.
package springmvc.web;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;
public class HelloWorldController implements Controller {
public ModelAndView handleRequest(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
String aMessage = "Hello World MVC!";
ModelAndView modelAndView = new ModelAndView("hello_world");
modelAndView.addObject("message", aMessage);
return modelAndView;
}
}
This Controller calls the view 'hello_world', passing 'message' to it (like a Struts attribute).