minor cleanup work on form project

This commit is contained in:
eugenp 2014-07-20 01:29:35 +03:00
parent a32f967374
commit e42eab8dfe
2 changed files with 11 additions and 10 deletions

View File

@ -6,11 +6,17 @@ public class Employee {
private long id; private long id;
private String contactNumber; private String contactNumber;
public Employee() {
super();
}
//
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(final String name) {
this.name = name; this.name = name;
} }
@ -18,7 +24,7 @@ public class Employee {
return id; return id;
} }
public void setId(long id) { public void setId(final long id) {
this.id = id; this.id = id;
} }
@ -26,7 +32,7 @@ public class Employee {
return contactNumber; return contactNumber;
} }
public void setContactNumber(String contactNumber) { public void setContactNumber(final String contactNumber) {
this.contactNumber = contactNumber; this.contactNumber = contactNumber;
} }

View File

@ -1,19 +1,14 @@
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%> <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>SpringMVCExample</title> <title>SpringMVCExample</title>
</head> </head>
<body> <body>
<h3>Welcome, Enter The Employee Details</h3> <h3>Welcome, Enter The Employee Details</h3>
<form:form method="POST" action="/spring-mvc-xml/addEmployee" <form:form method="POST" action="/spring-mvc-xml/addEmployee" commandName="employee">
commandName="employee">
<table> <table>
<tr> <tr>
<td><form:label path="name">Name</form:label></td> <td><form:label path="name">Name</form:label></td>