Skip to content

Commit 279b527

Browse files
author
Eugen
committed
Merge pull request eugenp#25 from Dheeraj-Baluja/master
Spring forms
2 parents 3aa3ac2 + ea6c88a commit 279b527

12 files changed

Lines changed: 86 additions & 84 deletions

File tree

‎SpringMVCFormExample/WebContent/WEB-INF/web.xml‎

Lines changed: 0 additions & 16 deletions
This file was deleted.

‎SpringMVCFormExample/src/com/demo/controllers/EmployeeController.java‎

Lines changed: 0 additions & 34 deletions
This file was deleted.

‎SpringMVCFormExample/src/com/demo/form/Employee.java‎

Lines changed: 0 additions & 33 deletions
This file was deleted.
File renamed without changes.

SpringMVCFormExample/WebContent/WEB-INF/dispatcher-servlet.xml renamed to spring-mvc-forms/WebContent/WEB-INF/dispatcher-servlet.xml

File renamed without changes.

SpringMVCFormExample/WebContent/WEB-INF/views/employeeAdded.jsp renamed to spring-mvc-forms/WebContent/WEB-INF/views/employeeAdded.jsp

File renamed without changes.

SpringMVCFormExample/WebContent/WEB-INF/views/employeeHome.jsp renamed to spring-mvc-forms/WebContent/WEB-INF/views/employeeHome.jsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<body>
1313
<h3>Welcome, Enter The Employee Details</h3>
1414

15-
<form:form method="POST" action="/SpringMVCFormExample/addEmployee"
15+
<form:form method="POST" action="/spring-mvc-forms/addEmployee"
1616
commandName="employee">
1717
<table>
1818
<tr>
File renamed without changes.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:javaee="http://java.sun.com/xml/ns/javaee"
3+
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.5">
5+
<javaee:display-name>SpringMVCFormExample</javaee:display-name>
6+
<servlet>
7+
<servlet-name>dispatcher</servlet-name>
8+
<servlet-class>org.springframework.web.servlet.DispatcherServlet
9+
</servlet-class>
10+
<load-on-startup>1</load-on-startup>
11+
</servlet>
12+
<servlet-mapping>
13+
<servlet-name>dispatcher</servlet-name>
14+
<url-pattern>/</url-pattern>
15+
</servlet-mapping>
16+
<welcome-file-list>
17+
<welcome-file>index.jsp</welcome-file>
18+
</welcome-file-list>
19+
</web-app>

0 commit comments

Comments
 (0)