There are following step to create a simple Spring MVC Program. @controller annotation class is process the user request and send the appropriate view page. @request mapping is use for match the URL so that my method execute. web.xml file is use for configure spring-config.xml file. From InternalResourceViewResolver method we are showing response in jsp file.
Below are jar file use:- Spring core jar file Spring web jar file
Index.jsp class:-
Welcome to Spring MVC Login page
Employee.javaclass:-
public class Employee {
private String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}