<div dir="ltr" style="text-align: justify;">
<div dir="ltr" style="text-align: justify;">
<div dir="ltr" style="text-align: justify;">
<p>In this tutorial we will discuss about the tiles and build a simple <a href="https://dineshonjava.com/spring-web-mvc-framework-chapter-38/" target="_blank" rel="noopener">SpringMVC</a> application that utilizes templates using the Apache Tile 3 framework. Now we will create a template version of our pages, and compare it with non-template versions of the same pages. We will split the content, style, and template of these pages logically.</p>
<div style="background-color: #f2f9fc; border: 1px solid #c9e6f2; border-radius: 3px; padding: 16px; line-height: 1.45;"><span style="color: red; font-size: x-large; text-align: center;"><b>Popular Tutorials</b></span></p>
<ul style="text-align: left;">
<li><b><a href="https://dineshonjava.com/spring-tutorial/"><em><strong>Spring Tutorial</strong> </em></a></b></li>
<li><b><a href="https://dineshonjava.com/spring-web-mvc-framework-chapter-38/"><strong><em>Spring MVC Web Tutorial </em></strong></a></b></li>
<li><b><a href="https://dineshonjava.com/introduction-to-spring-boot-a-spring-boot-complete-guide/"><strong>Spring Boot Tutorial</strong> </a></b></li>
<li><b><a href="https://dineshonjava.com/spring-security-take-baby-step-to-secure/"><em>Spring Security Tutorial</em></a></b></li>
<li><b><a href="https://dineshonjava.com/spring-aop-tutorial-with-example-aspect-advice-pointcut-joinpoint/"><em>Spring AOP Tutorial</em></a></b></li>
<li><b><a href="https://dineshonjava.com/using-spring-jdbc-framework-chapter-32/"><em>Spring JDBC Tutorial</em></a></b></li>
<li><b><a href="https://dineshonjava.com/spring-hateoas-hypermedia-driven-restful-web-service/"><em><strong>Spring HATEOAS </strong></em></a></b></li>
<li><b><a href="https://dineshonjava.com/microservices-with-spring-boot/"><em><strong>Microservices with Spring Boot</strong></em></a></b></li>
<li><b><a href="https://dineshonjava.com/jax-rs-web-service-tutorial/"><strong><em>REST Webservice</em> </strong></a></b></li>
<li><b><a href="https://dineshonjava.com/core-java-baby-step-to-be-best-java-ian/"><em><strong>Core Java </strong></em></a></b></li>
<li><b><a href="https://dineshonjava.com/hibernate-3-on-baby-steps/"><em><strong>Hibernate Tutorial</strong></em></a></b></li>
<li><b><a href="https://dineshonjava.com/spring-batch-process-with-example/"><strong><em>Spring Batch</em> </strong></a></b></li>
</ul>
</div>
<p><b>What is Apache Tiles 3.0.1?</b><br />
Apache Tiles is a templating framework built to simplify the development of web application user interfaces.</p>
<p><a href="http://tiles.apache.org/">Apache Tiles</a> is a popular and mostly used templating framework for java based web application. Tiles became more popular because <a href="http://struts.apache.org/" target="_blank" rel="noopener">Struts</a> 1.x uses <a href="http://tiles.apache.org/" target="_blank" rel="noopener">Tiles</a> as its default templating framework. <a href="https://dineshonjava.com/spring-web-mvc-framework-chapter-38/">Spring3MVC</a> which is an MVC framework, like <a href="http://struts.apache.org/" target="_blank" rel="noopener">Struts</a>, also supports integration of <a href="http://tiles.apache.org/" target="_blank" rel="noopener">Tiles</a> as its templating framework.</p>
<p>Tiles allows developer to define page fragments(or parts) which can be assembled into a complete page at run-time. These fragments, or tiles, can be used as simple includes in order to reduce the duplication of common page elements or embedded within other tiles to develop a series of reusable templates. These templates streamline the development of a consistent look and feel across an entire application.</p>
<p>Let us see how we can integrate <a href="https://dineshonjava.com/spring-web-mvc-framework-chapter-38/">Spring3MVC</a> and <a href="http://tiles.apache.org/">Tiles</a>.<br />
You can download <a href="http://tiles.apache.org/">Tiles</a> binaries from <a href="http://tiles.apache.org/download.html">here</a></p>
<h2 style="background-color: white; border: 0px none; font-family: georgia; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 1.4em; margin: 15px 0px 0px; orphans: 2; outline: 0px none; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: 2; word-spacing: 0px;"><i><b>Application Layout</b></i></h2>
<p> ;</p>
<div class="separator" style="clear: both; text-align: center;"><img src="https://dineshonjava.com/wp-content/uploads/2012/12/1092S3MTP1.gif" border="0" /></div>
<p><b><br />
</b> <b>A web portal have many reusable templates like header, footer, menu etc</b>. These elements remains same in every web page to give a uniform feel and look to improve presentation of portal. But difficult part is when you need to alter these common items.</p>
<p><b>The Tiles framework</b> solve this problem by using templatization mechanism. We create a common Header, Footer, Menu page and include this in each page. A common layout of website is defined in a central configuration file and this layout can be extended across all the web pages of the web application.</p>
<p> ;</p>
</div>
<p><b><i>Add the following required tiles jars to WEB-INF/lib folder.</i></b></p>
<ul style="text-align: left;">
<li>tiles-api-2.2.2.jar</li>
<li>tiles-core-2.2.2.jar</li>
<li>tiles-jsp-2.2.2.jar</li>
<li>tiles-servlet-2.2.2.jar</li>
<li>tiles-template-2.2.2.jar</li>
</ul>
<p>In the <a href="https://dineshonjava.com/2012/12/spring-mvc-with-hibernate-crud-example.html">previous chapter</a> we run an application of CRUD operation on the Employee table using Spring3MVC and Hibernate3. <b>Now same we will build same application using tiles configuration (or Tiles View Resolver) as view in stead of JstlView (or JSP View resolver)</b>.<br />
Updated view of our application with using the tiles configuration look like as below diagram.</p>
<div class="separator" style="clear: both; text-align: center;"><img src="https://dineshonjava.com/wp-content/uploads/2012/12/tilestructure.jpg" border="0" /></div>
<p><b>Application Structure:</b></p>
<div class="separator" style="clear: both; text-align: center;"><img src="https://dineshonjava.com/wp-content/uploads/2012/12/spring3-hibernate-application-architecture-with-tiles.png" border="0" /></div>
<p><b>EmployeeBean.java</b></p>
<div class="dp-highlighter" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #e7e5dc; color: #222222; font-family: Consolas, Monaco, 'Courier New', Courier, monospace; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; margin: 18px 0px !important; orphans: 2; overflow: auto; padding-top: 1px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; width: 564.2833251953125px; word-spacing: 0px;">
<div class="bar" style="padding-left: 45px;">
<div class="tools" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-style: solid; border-left-width: 3px; color: silver; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9px; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; padding: 3px 8px 10px 10px;"><a style="background-color: inherit; background-image: none; background-position: initial initial; background-repeat: initial initial; border: none; color: #a0a0a0; font-size: 9px; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: initial;" href="https://dineshonjava.com/spring-mvc-with-hibernate-crud-example/">view plain</a><a style="background-color: inherit; background-image: none; background-position: initial initial; background-repeat: initial initial; border: none; color: #a0a0a0; font-size: 9px; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: initial;" href="https://dineshonjava.com/2012/12/spring-mvc-with-hibernate-crud-example.html#">print</a><a style="background-color: inherit; background-image: none; background-position: initial initial; background-repeat: initial initial; border: none; color: #a0a0a0; font-size: 9px; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: initial;" href="https://dineshonjava.com/2012/12/spring-mvc-with-hibernate-crud-example.html#">?</a></div>
</div>
<ol class="dp-j" style="background-color: white; border: none; color: #5c5c5c; list-style: decimal; margin: 0px 0px 1px 45px !important; padding: 0px;">
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">package com.dineshonjava.bean;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">/**</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> * @author Dinesh Rajput</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> *</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> */</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">public class EmployeeBean {</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> private Integer id;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> private String name;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> private Integer age;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> private Long salary;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> private String address;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> public Long getSalary() {</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> return salary;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> }</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> public void setSalary(Long salary) {</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> this.salary = salary;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> }</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> public Integer getId() {</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> return id;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> }</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> public void setId(Integer id) {</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> this.id = id;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> }</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> public String getName() {</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> return name;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> }</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> public void setName(String name) {</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> this.name = name;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> }</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> public Integer getAge() {</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> return age;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> }</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> public void setAge(Integer age) {</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> this.age = age;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> }</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> public String getAddress() {</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> return address;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> }</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> public void setAddress(String address) {</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> this.address = address;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> }</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">}</li>
</ol>
</div>
<p><b>Employee.java</b></p>
<div class="dp-highlighter" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #e7e5dc; color: #222222; font-family: Consolas, Monaco, 'Courier New', Courier, monospace; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; margin: 18px 0px !important; orphans: 2; overflow: auto; padding-top: 1px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; width: 564.2833251953125px; word-spacing: 0px;">
<div class="bar" style="padding-left: 45px;">
<div class="tools" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-style: solid; border-left-width: 3px; color: silver; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9px; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; padding: 3px 8px 10px 10px;"><a style="background-color: inherit; background-image: none; background-position: initial initial; background-repeat: initial initial; border: none; color: #a0a0a0; font-size: 9px; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: initial;" href="https://dineshonjava.com/2012/12/spring-mvc-with-hibernate-crud-example.html#">view plain</a><a style="background-color: inherit; background-image: none; background-position: initial initial; background-repeat: initial initial; border: none; color: #a0a0a0; font-size: 9px; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: initial;" href="https://dineshonjava.com/2012/12/spring-mvc-with-hibernate-crud-example.html#">print</a><a style="background-color: inherit; background-image: none; background-position: initial initial; background-repeat: initial initial; border: none; color: #a0a0a0; font-size: 9px; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: initial;" href="https://dineshonjava.com/2012/12/spring-mvc-with-hibernate-crud-example.html#">?</a></div>
</div>
<ol class="dp-j" style="background-color: white; border: none; color: #5c5c5c; list-style: decimal; margin: 0px 0px 1px 45px !important; padding: 0px;">
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">package com.dineshonjava.model;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">import java.io.Serializable;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">import javax.persistence.Column;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">import javax.persistence.Entity;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">import javax.persistence.GeneratedValue;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">import javax.persistence.GenerationType;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">import javax.persistence.Id;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">import javax.persistence.Table;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">/**</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> * @author Dinesh Rajput</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> *</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> */</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">@Entity</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">@Table(name=&#8221;Employee&#8221;)</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">public class Employee implements Serializable{</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> private static final long serialVersionUID = -723583058586873479L;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> @Id</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> @GeneratedValue(strategy=GenerationType.AUTO)</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> @Column(name = &#8220;empid&#8221;)</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> private Integer empId;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> @Column(name=&#8221;empname&#8221;)</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> private String empName;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> @Column(name=&#8221;empaddress&#8221;)</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> private String empAddress;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> @Column(name=&#8221;salary&#8221;)</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> private Long salary;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> @Column(name=&#8221;empAge&#8221;)</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> private Integer empAge;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> public Integer getEmpId() {</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> return empId;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> }</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> public void setEmpId(Integer empId) {</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> this.empId = empId;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> }</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> public String getEmpName() {</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> return empName;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> }</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> public void setEmpName(String empName) {</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> this.empName = empName;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> }</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> public String getEmpAddress() {</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> return empAddress;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> }</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> public void setEmpAddress(String empAddress) {</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> this.empAddress = empAddress;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> }</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> public Long getSalary() {</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> return salary;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> }</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> public void setSalary(Long salary) {</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> this.salary = salary;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> }</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> public Integer getEmpAge() {</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> return empAge;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> }</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> public void setEmpAge(Integer empAge) {</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> this.empAge = empAge;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> }</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">}</li>
</ol>
</div>
<p><b>EmployeeDao.java</b></p>
<div class="dp-highlighter" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #e7e5dc; color: #222222; font-family: Consolas, Monaco, 'Courier New', Courier, monospace; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; margin: 18px 0px !important; orphans: 2; overflow: auto; padding-top: 1px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; width: 564.2833251953125px; word-spacing: 0px;">
<div class="bar" style="padding-left: 45px;">
<div class="tools" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-style: solid; border-left-width: 3px; color: silver; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9px; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; padding: 3px 8px 10px 10px;"><a style="background-color: inherit; background-image: none; background-position: initial initial; background-repeat: initial initial; border: none; color: #a0a0a0; font-size: 9px; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: initial;" href="https://dineshonjava.com/2012/12/spring-mvc-with-hibernate-crud-example.html#">view plain</a><a style="background-color: inherit; background-image: none; background-position: initial initial; background-repeat: initial initial; border: none; color: #a0a0a0; font-size: 9px; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: initial;" href="https://dineshonjava.com/2012/12/spring-mvc-with-hibernate-crud-example.html#">print</a><a style="background-color: inherit; background-image: none; background-position: initial initial; background-repeat: initial initial; border: none; color: #a0a0a0; font-size: 9px; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: initial;" href="https://dineshonjava.com/2012/12/spring-mvc-with-hibernate-crud-example.html#">?</a></div>
</div>
<ol class="dp-j" style="background-color: white; border: none; color: #5c5c5c; list-style: decimal; margin: 0px 0px 1px 45px !important; padding: 0px;">
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">package com.dineshonjava.dao;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">import java.util.List;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">import com.dineshonjava.model.Employee;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">/**</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> * @author Dinesh Rajput</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> *</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> */</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">public interface EmployeeDao {</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> public void addEmployee(Employee employee);</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> public List<;Employee>; listEmployeess();</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> public Employee getEmployee(int empid);</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> public void deleteEmployee(Employee employee);</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">}</li>
</ol>
</div>
<p><b>EmployeeDaoImpl.java</b></p>
<div class="dp-highlighter" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #e7e5dc; color: #222222; font-family: Consolas, Monaco, 'Courier New', Courier, monospace; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; margin: 18px 0px !important; orphans: 2; overflow: auto; padding-top: 1px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; width: 564.2833251953125px; word-spacing: 0px;">
<div class="bar" style="padding-left: 45px;">
<div class="tools" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-style: solid; border-left-width: 3px; color: silver; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9px; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; padding: 3px 8px 10px 10px;"><a style="background-color: inherit; background-image: none; background-position: initial initial; background-repeat: initial initial; border: none; color: #a0a0a0; font-size: 9px; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: initial;" href="https://dineshonjava.com/2012/12/spring-mvc-with-hibernate-crud-example.html#">view plain</a><a style="background-color: inherit; background-image: none; background-position: initial initial; background-repeat: initial initial; border: none; color: #a0a0a0; font-size: 9px; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: initial;" href="https://dineshonjava.com/2012/12/spring-mvc-with-hibernate-crud-example.html#">print</a><a style="background-color: inherit; background-image: none; background-position: initial initial; background-repeat: initial initial; border: none; color: #a0a0a0; font-size: 9px; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: initial;" href="https://dineshonjava.com/2012/12/spring-mvc-with-hibernate-crud-example.html#">?</a></div>
</div>
<ol class="dp-j" style="background-color: white; border: none; color: #5c5c5c; list-style: decimal; margin: 0px 0px 1px 45px !important; padding: 0px;">
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">package com.dineshonjava.dao;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">import java.util.List;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">import org.hibernate.SessionFactory;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">import org.springframework.beans.factory.annotation.Autowired;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">import org.springframework.stereotype.Repository;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">import com.dineshonjava.model.Employee;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">/**</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> * @author Dinesh Rajput</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> *</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> */</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">@Repository(&#8220;employeeDao&#8221;)</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">public class EmployeeDaoImpl implements EmployeeDao {</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> @Autowired</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> private SessionFactory sessionFactory;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> public void addEmployee(Employee employee) {</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> sessionFactory.getCurrentSession().saveOrUpdate(employee);</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> }</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> @SuppressWarnings(&#8220;unchecked&#8221;)</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> public List<;Employee>; listEmployeess() {</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> return (List<;Employee>;) sessionFactory.getCurrentSession().createCriteria(Employee.class).list();</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> }</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> public Employee getEmployee(int empid) {</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> return (Employee) sessionFactory.getCurrentSession().get(Employee.class, empid);</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> }</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> public void deleteEmployee(Employee employee) {</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> sessionFactory.getCurrentSession().createQuery(&#8220;DELETE FROM Employee WHERE empid = &#8220;+employee.getEmpId()).executeUpdate();</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> }</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">}<;span style=&#8221;color: #4c1130;&#8221;>;<;b>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"><;/b>;<;/span>;</li>
</ol>
</div>
<p><b>EmployeeService.java</b></p>
<div class="dp-highlighter" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #e7e5dc; color: #222222; font-family: Consolas, Monaco, 'Courier New', Courier, monospace; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; margin: 18px 0px !important; orphans: 2; overflow: auto; padding-top: 1px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; width: 564.2833251953125px; word-spacing: 0px;">
<div class="bar" style="padding-left: 45px;">
<div class="tools" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-style: solid; border-left-width: 3px; color: silver; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9px; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; padding: 3px 8px 10px 10px;"><a style="background-color: inherit; background-image: none; background-position: initial initial; background-repeat: initial initial; border: none; color: #a0a0a0; font-size: 9px; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: initial;" href="https://dineshonjava.com/2012/12/spring-mvc-with-hibernate-crud-example.html#">view plain</a><a style="background-color: inherit; background-image: none; background-position: initial initial; background-repeat: initial initial; border: none; color: #a0a0a0; font-size: 9px; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: initial;" href="https://dineshonjava.com/2012/12/spring-mvc-with-hibernate-crud-example.html#">print</a><a style="background-color: inherit; background-image: none; background-position: initial initial; background-repeat: initial initial; border: none; color: #a0a0a0; font-size: 9px; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: initial;" href="https://dineshonjava.com/2012/12/spring-mvc-with-hibernate-crud-example.html#">?</a></div>
</div>
<ol class="dp-j" style="background-color: white; border: none; color: #5c5c5c; list-style: decimal; margin: 0px 0px 1px 45px !important; padding: 0px;">
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">package com.dineshonjava.service;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">import java.util.List;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">import com.dineshonjava.model.Employee;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">/**</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> * @author Dinesh Rajput</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> *</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> */</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">public interface EmployeeService {</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> public void addEmployee(Employee employee);</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> public List<;Employee>; listEmployeess();</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> public Employee getEmployee(int empid);</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> public void deleteEmployee(Employee employee);</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">}</li>
</ol>
</div>
<p><b>EmployeeServiceImpl.java</b></p>
<div class="dp-highlighter" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #e7e5dc; color: #222222; font-family: Consolas, Monaco, 'Courier New', Courier, monospace; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; margin: 18px 0px !important; orphans: 2; overflow: auto; padding-top: 1px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; width: 564.2833251953125px; word-spacing: 0px;">
<div class="bar" style="padding-left: 45px;">
<div class="tools" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-style: solid; border-left-width: 3px; color: silver; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9px; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; padding: 3px 8px 10px 10px;"><a style="background-color: inherit; background-image: none; background-position: initial initial; background-repeat: initial initial; border: none; color: #a0a0a0; font-size: 9px; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: initial;" href="https://dineshonjava.com/2012/12/spring-mvc-with-hibernate-crud-example.html#">view plain</a><a style="background-color: inherit; background-image: none; background-position: initial initial; background-repeat: initial initial; border: none; color: #a0a0a0; font-size: 9px; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: initial;" href="https://dineshonjava.com/2012/12/spring-mvc-with-hibernate-crud-example.html#">print</a><a style="background-color: inherit; background-image: none; background-position: initial initial; background-repeat: initial initial; border: none; color: #a0a0a0; font-size: 9px; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: initial;" href="https://dineshonjava.com/2012/12/spring-mvc-with-hibernate-crud-example.html#">?</a></div>
</div>
<ol class="dp-j" style="background-color: white; border: none; color: #5c5c5c; list-style: decimal; margin: 0px 0px 1px 45px !important; padding: 0px;">
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">package com.dineshonjava.service;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">import java.util.List;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">import org.springframework.beans.factory.annotation.Autowired;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">import org.springframework.stereotype.Service;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">import org.springframework.transaction.annotation.Propagation;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">import org.springframework.transaction.annotation.Transactional;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">import com.dineshonjava.dao.EmployeeDao;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">import com.dineshonjava.model.Employee;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">/**</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> * @author Dinesh Rajput</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> *</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> */</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">@Service(&#8220;employeeService&#8221;)</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">public class EmployeeServiceImpl implements EmployeeService {</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> @Autowired</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> private EmployeeDao employeeDao;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> @Transactional(propagation = Propagation.REQUIRED, readOnly = false)</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> public void addEmployee(Employee employee) {</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> employeeDao.addEmployee(employee);</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> }</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> public List<;Employee>; listEmployeess() {</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> return employeeDao.listEmployeess();</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> }</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> public Employee getEmployee(int empid) {</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> return employeeDao.getEmployee(empid);</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> }</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> public void deleteEmployee(Employee employee) {</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> employeeDao.deleteEmployee(employee);</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> }</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">}</li>
</ol>
</div>
<p><b>EmployeeController.java</b></p>
<div class="dp-highlighter" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #e7e5dc; color: #222222; font-family: Consolas, Monaco, 'Courier New', Courier, monospace; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; margin: 18px 0px !important; orphans: 2; overflow: auto; padding-top: 1px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; width: 564.2833251953125px; word-spacing: 0px;">
<div class="bar" style="padding-left: 45px;">
<div class="tools" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-style: solid; border-left-width: 3px; color: silver; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9px; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; padding: 3px 8px 10px 10px;"><a style="background-color: inherit; background-image: none; background-position: initial initial; background-repeat: initial initial; border: none; color: #a0a0a0; font-size: 9px; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: initial;" href="https://dineshonjava.com/2012/12/spring-mvc-with-hibernate-crud-example.html#">view plain</a><a style="background-color: inherit; background-image: none; background-position: initial initial; background-repeat: initial initial; border: none; color: #a0a0a0; font-size: 9px; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: initial;" href="https://dineshonjava.com/2012/12/spring-mvc-with-hibernate-crud-example.html#">print</a><a style="background-color: inherit; background-image: none; background-position: initial initial; background-repeat: initial initial; border: none; color: #a0a0a0; font-size: 9px; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: initial;" href="https://dineshonjava.com/2012/12/spring-mvc-with-hibernate-crud-example.html#">?</a></div>
</div>
<ol class="dp-j" style="background-color: white; border: none; color: #5c5c5c; list-style: decimal; margin: 0px 0px 1px 45px !important; padding: 0px;">
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">package com.dineshonjava.controller;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">import java.util.ArrayList;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">import java.util.HashMap;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">import java.util.List;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">import java.util.Map;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">import org.springframework.beans.factory.annotation.Autowired;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">import org.springframework.stereotype.Controller;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">import org.springframework.validation.BindingResult;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">import org.springframework.web.bind.annotation.ModelAttribute;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">import org.springframework.web.bind.annotation.RequestMapping;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">import org.springframework.web.bind.annotation.RequestMethod;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">import org.springframework.web.servlet.ModelAndView;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">import com.dineshonjava.bean.EmployeeBean;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">import com.dineshonjava.model.Employee;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">import com.dineshonjava.service.EmployeeService;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">/**</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> * @author Dinesh Rajput</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> *</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> */</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">@Controller</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">public class EmployeeController {</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> @Autowired</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> private EmployeeService employeeService;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">@RequestMapping(value = &#8220;/save&#8221;, method = RequestMethod.POST)</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">public ModelAndView saveEmployee(@ModelAttribute(&#8220;command&#8221;)EmployeeBean employeeBean,</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> BindingResult result) {</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> Employee employee = prepareModel(employeeBean);</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> employeeService.addEmployee(employee);</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> return new ModelAndView(&#8220;redirect:/add.html&#8221;);</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> }</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> @RequestMapping(value=&#8221;/employees&#8221;, method = RequestMethod.GET)</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> public ModelAndView listEmployees() {</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> Map<;String, Object>; model = new HashMap<;String, Object>;();</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> model.put(&#8220;employees&#8221;, prepareListofBean(employeeService.listEmployeess()));</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> return new ModelAndView(&#8220;employeesList&#8221;, model);</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> }</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> @RequestMapping(value = &#8220;/add&#8221;, method = RequestMethod.GET)</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> public ModelAndView addEmployee(@ModelAttribute(&#8220;command&#8221;)EmployeeBean employeeBean,</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> BindingResult result) {</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> Map<;String, Object>; model = new HashMap<;String, Object>;();</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> model.put(&#8220;employees&#8221;, prepareListofBean(employeeService.listEmployeess()));</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> return new ModelAndView(&#8220;addEmployee&#8221;, model);</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> }</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">@RequestMapping(value = &#8220;/index&#8221;, method = RequestMethod.GET)</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">public ModelAndView welcome() {</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> return new ModelAndView(&#8220;redirect:/add.html&#8221;);</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> }</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">@RequestMapping(value = &#8220;/delete&#8221;, method = RequestMethod.GET)</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">public ModelAndView editEmployee(@ModelAttribute(&#8220;command&#8221;)EmployeeBean employeeBean,</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> BindingResult result) {</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> employeeService.deleteEmployee(prepareModel(employeeBean));</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> Map<;String, Object>; model = new HashMap<;String, Object>;();</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> model.put(&#8220;employee&#8221;, null);</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> model.put(&#8220;employees&#8221;, prepareListofBean(employeeService.listEmployeess()));</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> return new ModelAndView(&#8220;addEmployee&#8221;, model);</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> }</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">@RequestMapping(value = &#8220;/edit&#8221;, method = RequestMethod.GET)</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">public ModelAndView deleteEmployee(@ModelAttribute(&#8220;command&#8221;)EmployeeBean employeeBean,</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> BindingResult result) {</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> Map<;String, Object>; model = new HashMap<;String, Object>;();</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> model.put(&#8220;employee&#8221;, prepareEmployeeBean(employeeService.getEmployee(employeeBean.getId())));</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> model.put(&#8220;employees&#8221;, prepareListofBean(employeeService.listEmployeess()));</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> return new ModelAndView(&#8220;addEmployee&#8221;, model);</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> }</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> private Employee prepareModel(EmployeeBean employeeBean){</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> Employee employee = new Employee();</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> employee.setEmpAddress(employeeBean.getAddress());</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> employee.setEmpAge(employeeBean.getAge());</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> employee.setEmpName(employeeBean.getName());</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> employee.setSalary(employeeBean.getSalary());</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> employee.setEmpId(employeeBean.getId());</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> employeeBean.setId(null);</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> return employee;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> }</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> private List<;EmployeeBean>; prepareListofBean(List<;Employee>; employees){</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> List<;employeebean>; beans = null;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> if(employees != null &;&; !employees.isEmpty()){</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> beans = new ArrayList<;EmployeeBean>;();</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> EmployeeBean bean = null;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> for(Employee employee : employees){</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> bean = new EmployeeBean();</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> bean.setName(employee.getEmpName());</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> bean.setId(employee.getEmpId());</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> bean.setAddress(employee.getEmpAddress());</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> bean.setSalary(employee.getSalary());</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> bean.setAge(employee.getEmpAge());</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> beans.add(bean);</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> }</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> }</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> return beans;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> }</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> private EmployeeBean prepareEmployeeBean(Employee employee){</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> EmployeeBean bean = new EmployeeBean();</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> bean.setAddress(employee.getEmpAddress());</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> bean.setAge(employee.getEmpAge());</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> bean.setName(employee.getEmpName());</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> bean.setSalary(employee.getSalary());</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> bean.setId(employee.getEmpId());</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> return bean;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> }</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">}</li>
</ol>
</div>
<p><b style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">Spring Web configuration file <i>web.xml</i></b></p>
</div>
<pre class="highlight"><;web-app version="2.5" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemalocation="http://java.sun.com/xml/ns/javaee 
 http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">; 
 
 <;servlet>; 
 <;servlet-name>;sdnext<;/servlet-name>; 
 <;servlet-class>;org.springframework.web.servlet.DispatcherServlet<;/servlet-class>; 
 <;init-param>; 
 <;param-name>;contextConfigLocation<;/param-name>;<;param-value>;/WEB-INF/config/sdnext-servlet.xml<;/param-value>;<;/init-param>; 
 <;load-on-startup>;1<;/load-on-startup>; 
 <;/servlet>; 
 
 <;servlet-mapping>; 
 <;servlet-name>;sdnext<;/servlet-name>; 
 <;url-pattern>;*.html<;/url-pattern>; 
 <;/servlet-mapping>; 
 
 <;welcome-file-list>; 
 <;welcome-file>;index.html<;/welcome-file>; 
 <;/welcome-file-list>; 
 
<;/web-app>; 
</pre>
<p><b><br />
</b> <b>Spring Web configuration file <i>sdnext-servlet.xml</i></b></p>
<pre class="highlight"><;beans xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.springframework.org/schema/beans" xsi:schemalocation=" 
http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd 
http://www.springframework.org/schema/context 
http://www.springframework.org/schema/context/spring-context-3.0.xsd 
http://www.springframework.org/schema/tx 
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd">; 
 
<;context:property-placeholder location="classpath:resources/database.properties">; 
<;/context:property-placeholder>; 
<;context:component-scan base-package="com.dineshonjava">; 
<;/context:component-scan>; 
 
<;tx:annotation-driven transaction-manager="hibernateTransactionManager">; 
<;/tx:annotation-driven>; 
 
<;!-- <;bean id="jspViewResolver" 
 class="org.springframework.web.servlet.view.InternalResourceViewResolver">; 
 <;property name="viewClass" 
 value="org.springframework.web.servlet.view.JstlView">;<;/property>; 
 <;property name="prefix" value="/WEB-INF/views/">;<;/property>; 
 <;property name="suffix" value=".jsp">;<;/property>; 
<;/bean>; -->; 
 
<;bean class="org.springframework.web.servlet.view.UrlBasedViewResolver" id="viewResolver">; 
 <;property name="viewClass">; 
 <;value>; 
 org.springframework.web.servlet.view.tiles2.TilesView 
 <;/value>; 
 <;/property>; 
<;/bean>; 
<;bean class="org.springframework.web.servlet.view.tiles2.TilesConfigurer" id="tilesConfigurer">; 
 <;property name="definitions">; 
 <;list>; 
 <;value>;/WEB-INF/config/tiles.xml<;/value>; 
 <;/list>; 
 <;/property>; 
<;/bean>; 
 
<;bean class="org.springframework.jdbc.datasource.DriverManagerDataSource" id="dataSource">; 
 <;property name="driverClassName" value="${database.driver}">;<;/property>; 
 <;property name="url" value="${database.url}">;<;/property>; 
 <;property name="username" value="${database.user}">;<;/property>; 
 <;property name="password" value="${database.password}">;<;/property>; 
<;/bean>; 
 
<;bean class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean" id="sessionFactory">; 
 <;property name="dataSource" ref="dataSource">;<;/property>; 
 <;property name="annotatedClasses">; 
 <;list>; 
 <;value>;com.dineshonjava.model.Employee<;/value>; 
 <;/list>; 
 <;/property>; 
 <;property name="hibernateProperties">; 
 <;props>; 
 <;prop key="hibernate.dialect">;${hibernate.dialect}<;/prop>; 
 <;prop key="hibernate.show_sql">;${hibernate.show_sql}<;/prop>; 
 <;prop key="hibernate.hbm2ddl.auto">;${hibernate.hbm2ddl.auto} <;/prop>; 
 <;/props>; 
 <;/property>; 
<;/bean>; 
 
 <;bean class="org.springframework.orm.hibernate3.HibernateTransactionManager" id="hibernateTransactionManager">; 
 <;property name="sessionFactory" ref="sessionFactory">;<;/property>; 
 <;/bean>; 
<;/beans>; 
</pre>
<p><i><b>tiles.xml</b></i></p>
<pre class="highlight"><;tiles-definitions>; 
 <;definition name="base.definition" template="/WEB-INF/views/mainTemplate.jsp">; 
 <;put-attribute name="title" value="">;<;/put-attribute>; 
 <;put-attribute name="header" value="/WEB-INF/views/header.jsp">;<;/put-attribute>; 
 <;put-attribute name="menu" value="/WEB-INF/views/menu.jsp">;<;/put-attribute>; 
 <;put-attribute name="body" value="">;<;/put-attribute>; 
 <;put-attribute name="footer" value="/WEB-INF/views/footer.jsp">;<;/put-attribute>; 
 <;/definition>; 
 
 <;definition extends="base.definition" name="addEmployee">; 
 <;put-attribute name="title" value="Employee Data Form">;<;/put-attribute>; 
 <;put-attribute name="body" value="/WEB-INF/views/addEmployee.jsp">;<;/put-attribute>; 
 <;/definition>; 
 
 <;definition extends="base.definition" name="employeesList">; 
 <;put-attribute name="title" value="Employees List">;<;/put-attribute>; 
 <;put-attribute name="body" value="/WEB-INF/views/employeesList.jsp">;<;/put-attribute>; 
 <;/definition>; 
 
<;/tiles-definitions>; 
</pre>
<p><i><b>database.properties</b></i></p>
<pre class="highlight">database.driver=com.mysql.jdbc.Driver 
database.url=jdbc:mysql://localhost:3306/DAVDB 
database.user=root 
database.password=root 
hibernate.dialect=org.hibernate.dialect.MySQLDialect 
hibernate.show_sql=true 
hibernate.hbm2ddl.auto=update 
</pre>
<div dir="ltr" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">
<div dir="ltr" style="text-align: left;">
<p><i><b>addEmployee.jsp</b></i></p>
<div class="dp-highlighter" style="background-color: #e7e5dc; font-family: Consolas, Monaco, 'Courier New', Courier, monospace; font-size: 12px; margin: 18px 0px !important; overflow: auto; padding-top: 1px; width: 564.2833251953125px;">
<div class="bar" style="padding-left: 45px;">
<div class="tools" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-style: solid; border-left-width: 3px; color: silver; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9px; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; padding: 3px 8px 10px 10px;"><a style="background-color: inherit; background-image: none; background-position: initial initial; background-repeat: initial initial; border: none; color: #a0a0a0; font-size: 9px; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: initial;" href="https://dineshonjava.com/2012/12/spring-mvc-with-hibernate-crud-example.html#">view plain</a><a style="background-color: inherit; background-image: none; background-position: initial initial; background-repeat: initial initial; border: none; color: #a0a0a0; font-size: 9px; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: initial;" href="https://dineshonjava.com/2012/12/spring-mvc-with-hibernate-crud-example.html#">print</a><a style="background-color: inherit; background-image: none; background-position: initial initial; background-repeat: initial initial; border: none; color: #a0a0a0; font-size: 9px; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: initial;" href="https://dineshonjava.com/2012/12/spring-mvc-with-hibernate-crud-example.html#">?</a></div>
</div>
<ol class="dp-xml" style="background-color: white; border: none; color: #5c5c5c; list-style: decimal; margin: 0px 0px 1px 45px !important; padding: 0px;">
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"><;%@ page language=&#8221;java&#8221; contentType=&#8221;text/html; charset=ISO-8859-1&#8243;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> pageEncoding=&#8221;ISO-8859-1&#8243;%>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"><;%@taglib uri=&#8221;http://www.springframework.org/tags/form&#8221; prefix=&#8221;form&#8221;%>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"><;%@ taglib uri=&#8221;http://java.sun.com/jsp/jstl/core&#8221; prefix=&#8221;c&#8221;%>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"><;html>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;head>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;title>;Spring MVC Form Handling<;/title>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;/head>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;body>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;h2>;Add Employee Data<;/h2>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"><;form:form action=&#8221;/sdnext/save.html&#8221; method=&#8221;POST&#8221;>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;table>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;tbody>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;tr>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;td>;<;form:label path=&#8221;id&#8221;>;Employee ID:<;/form:label>;<;/td>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;td>;<;form:input path=&#8221;id&#8221; readonly=&#8221;true&#8221; value=&#8221;${employee.id}&#8221;>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;/form:input>;<;/td>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;/tr>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;tr>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;td>;<;form:label path=&#8221;name&#8221;>;Employee Name:<;/form:label>;<;/td>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;td>;<;form:input path=&#8221;name&#8221; value=&#8221;${employee.name}&#8221;>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;/form:input>;<;/td>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;/tr>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;tr>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;td>;<;form:label path=&#8221;age&#8221;>;Employee Age:<;/form:label>;<;/td>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;td>;<;form:input path=&#8221;age&#8221; value=&#8221;${employee.age}&#8221;>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;/form:input>;<;/td>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;/tr>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;tr>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;td>;<;form:label path=&#8221;salary&#8221;>;Employee Salary:<;/form:label>;<;/td>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;td>;<;form:input path=&#8221;salary&#8221; value=&#8221;${employee.salary}&#8221;>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;/form:input>;<;/td>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;/tr>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;tr>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;td>;<;form:label path=&#8221;address&#8221;>;Employee Address:<;/form:label>;<;/td>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;td>;<;form:input path=&#8221;address&#8221; value=&#8221;${employee.address}&#8221;>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;/form:input>;<;/td>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;/tr>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;tr>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;td colspan=&#8221;2&#8243;>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;input type=&#8221;submit&#8221; value=&#8221;Submit&#8221;>;<;/td>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;/tr>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;/tbody>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;/table>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"><;/form:form>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;c:if test=&#8221;${!empty employees}&#8221;>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;h2>; List Employees<;/h2>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;table align=&#8221;left&#8221; border=&#8221;1&#8243;>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;tbody>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;tr>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;th>;Employee ID<;/th>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;th>;Employee Name<;/th>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;th>;Employee Age<;/th>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;th>;Employee Salary<;/th>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;th>;Employee Address<;/th>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;th>;Actions on Row<;/th>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;/tr>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"><;c:foreach items=&#8221;${employees}&#8221; var=&#8221;employee&#8221;>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;tr>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;td>;<;c:out value=&#8221;${employee.id}&#8221;>;<;/c:out>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"><;/td>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;td>;<;c:out value=&#8221;${employee.name}&#8221;>;<;/c:out>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;/td>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;td>;<;c:out value=&#8221;${employee.age}&#8221;>;<;/c:out>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;/td>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;td>;<;c:out value=&#8221;${employee.salary}&#8221;>;<;/c:out>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"><;/td>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;td>;<;c:out value=&#8221;${employee.address}&#8221;>;<;/c:out>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;/td>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;td align=&#8221;center&#8221;>;<;a href=&#8221;edit.html/?id=${employee.id}&#8221;>;Edit<;/a>; |</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;a href=&#8221;delete.html/?id=${employee.id}&#8221;>;Delete<;/a>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;/td>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;/tr>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"><;/c:foreach>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"><;/tbody>;<;/table>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"><;/c:if>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;/body>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"><;/html>;</li>
</ol>
</div>
</div>
<p><i><b>employeesList.jsp</b></i></p>
<div class="dp-highlighter" style="background-color: #e7e5dc; font-family: Consolas, Monaco, 'Courier New', Courier, monospace; font-size: 12px; margin: 18px 0px !important; overflow: auto; padding-top: 1px; width: 564.2833251953125px;">
<div class="bar" style="padding-left: 45px;">
<div class="tools" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-style: solid; border-left-width: 3px; color: silver; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9px; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; padding: 3px 8px 10px 10px;"><a style="background-color: inherit; background-image: none; background-position: initial initial; background-repeat: initial initial; border: none; color: #a0a0a0; font-size: 9px; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: initial;" href="https://dineshonjava.com/2012/12/spring-mvc-with-hibernate-crud-example.html#">view plain</a><a style="background-color: inherit; background-image: none; background-position: initial initial; background-repeat: initial initial; border: none; color: #a0a0a0; font-size: 9px; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: initial;" href="https://dineshonjava.com/2012/12/spring-mvc-with-hibernate-crud-example.html#">print</a><a style="background-color: inherit; background-image: none; background-position: initial initial; background-repeat: initial initial; border: none; color: #a0a0a0; font-size: 9px; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: initial;" href="https://dineshonjava.com/2012/12/spring-mvc-with-hibernate-crud-example.html#">?</a></div>
</div>
<ol class="dp-xml" style="background-color: white; border: none; color: #5c5c5c; list-style: decimal; margin: 0px 0px 1px 45px !important; padding: 0px;">
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"><;%@ page language=&#8221;java&#8221; contentType=&#8221;text/html; charset=ISO-8859-1&#8243;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> pageEncoding=&#8221;ISO-8859-1&#8243;%>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"><;%@ taglib uri=&#8221;http://java.sun.com/jsp/jstl/core&#8221; prefix=&#8221;c&#8221;%>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"><;html>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"><;head>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"><;title>;All Employees<;/title>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"><;/head>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"><;body>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"><;h1>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">List Employees<;/h1>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"><;h3>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"><;a href=&#8221;http://add.html/&#8221;>;Add More Employee<;/a>;<;/h3>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"><;c:if test=&#8221;${!empty employees}&#8221;>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"><;table align=&#8221;left&#8221; border=&#8221;1&#8243;>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"><;tbody>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"><;tr>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;th>;Employee ID<;/th>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;th>;Employee Name<;/th>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;th>;Employee Age<;/th>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;th>;Employee Salary<;/th>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;th>;Employee Address<;/th>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;/tr>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"><;c:foreach items=&#8221;${employees}&#8221; var=&#8221;employee&#8221;>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"><;tr>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;td>;<;c:out value=&#8221;${employee.id}&#8221;>;<;/c:out>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;/td>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;td>;<;c:out value=&#8221;${employee.name}&#8221;>;<;/c:out>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"><;/td>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;td>;<;c:out value=&#8221;${employee.age}&#8221;>;<;/c:out>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"><;/td>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;td>;<;c:out value=&#8221;${employee.salary}&#8221;>;<;/c:out>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"><;/td>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;td>;<;c:out value=&#8221;${employee.address}&#8221;>;<;/c:out>;<;/td>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;/tr>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"><;/c:foreach>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"><;/tbody>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;/table>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"><;/c:if>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"><;/body>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"><;/html>;</li>
</ol>
</div>
</div>
<p><i><b>menu.jsp</b></i></p>
<div class="dp-highlighter" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #e7e5dc; color: #222222; font-family: Consolas, Monaco, 'Courier New', Courier, monospace; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; margin: 18px 0px !important; orphans: 2; overflow: auto; padding-top: 1px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; width: 564.2833251953125px; word-spacing: 0px;">
<div class="bar" style="padding-left: 45px;">
<div class="tools" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-style: solid; border-left-width: 3px; color: silver; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9px; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; padding: 3px 8px 10px 10px;"><a style="background-color: inherit; background-image: none; background-position: initial initial; background-repeat: initial initial; border: none; color: #a0a0a0; font-size: 9px; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: initial;" href="https://dineshonjava.com/2012/12/spring-mvc-with-hibernate-crud-example.html#">view plain</a><a style="background-color: inherit; background-image: none; background-position: initial initial; background-repeat: initial initial; border: none; color: #a0a0a0; font-size: 9px; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: initial;" href="https://dineshonjava.com/2012/12/spring-mvc-with-hibernate-crud-example.html#">print</a><a style="background-color: inherit; background-image: none; background-position: initial initial; background-repeat: initial initial; border: none; color: #a0a0a0; font-size: 9px; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: initial;" href="https://dineshonjava.com/2012/12/spring-mvc-with-hibernate-crud-example.html#">?</a></div>
</div>
<ol class="dp-xml" style="background-color: white; border: none; color: #5c5c5c; list-style: decimal; margin: 0px 0px 1px 45px !important; padding: 0px;">
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;h2>; Menu<;/h2>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">1. <;a href=&#8221;employees.html&#8221;>;List of Employees<;/a>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;">2. <;a href=&#8221;add.html&#8221;>;Add Employee<;/a>;</li>
</ol>
</div>
<p><i><b>header.jsp</b></i></p>
<div class="dp-highlighter" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #e7e5dc; color: #222222; font-family: Consolas, Monaco, 'Courier New', Courier, monospace; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; margin: 18px 0px !important; orphans: 2; overflow: auto; padding-top: 1px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; width: 564.2833251953125px; word-spacing: 0px;">
<div class="bar" style="padding-left: 45px;">
<div class="tools" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-style: solid; border-left-width: 3px; color: silver; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9px; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; padding: 3px 8px 10px 10px;"><a style="background-color: inherit; background-image: none; background-position: initial initial; background-repeat: initial initial; border: none; color: #a0a0a0; font-size: 9px; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: initial;" href="https://dineshonjava.com/2012/12/spring-mvc-with-hibernate-crud-example.html#">view plain</a><a style="background-color: inherit; background-image: none; background-position: initial initial; background-repeat: initial initial; border: none; color: #a0a0a0; font-size: 9px; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: initial;" href="https://dineshonjava.com/2012/12/spring-mvc-with-hibernate-crud-example.html#">print</a><a style="background-color: inherit; background-image: none; background-position: initial initial; background-repeat: initial initial; border: none; color: #a0a0a0; font-size: 9px; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: initial;" href="https://dineshonjava.com/2012/12/spring-mvc-with-hibernate-crud-example.html#">?</a></div>
</div>
<ol class="dp-xml" style="background-color: white; border: none; color: #5c5c5c; list-style: decimal; margin: 0px 0px 1px 45px !important; padding: 0px;">
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"><i><;h2>;Header- Employee Management System<;/h2>;</i></li>
</ol>
</div>
<p><i><b>footer.jsp</b></i></p>
<div class="dp-highlighter" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #e7e5dc; color: #222222; font-family: Consolas, Monaco, 'Courier New', Courier, monospace; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; margin: 18px 0px !important; orphans: 2; overflow: auto; padding-top: 1px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; width: 564.2833251953125px; word-spacing: 0px;">
<div class="bar" style="padding-left: 45px;">
<div class="tools" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-style: solid; border-left-width: 3px; color: silver; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9px; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; padding: 3px 8px 10px 10px;"><a style="background-color: inherit; background-image: none; background-position: initial initial; background-repeat: initial initial; border: none; color: #a0a0a0; font-size: 9px; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: initial;" href="https://dineshonjava.com/2012/12/spring-mvc-with-hibernate-crud-example.html#">view plain</a><a style="background-color: inherit; background-image: none; background-position: initial initial; background-repeat: initial initial; border: none; color: #a0a0a0; font-size: 9px; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: initial;" href="https://dineshonjava.com/2012/12/spring-mvc-with-hibernate-crud-example.html#">print</a><a style="background-color: inherit; background-image: none; background-position: initial initial; background-repeat: initial initial; border: none; color: #a0a0a0; font-size: 9px; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: initial;" href="https://dineshonjava.com/2012/12/spring-mvc-with-hibernate-crud-example.html#">?</a></div>
</div>
<ol class="dp-xml" style="background-color: white; border: none; color: #5c5c5c; list-style: decimal; margin: 0px 0px 1px 45px !important; padding: 0px;">
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;p>;Copyright &;copy; 2013 dineshonjava.com<;/p>;</li>
</ol>
</div>
<p><i><b>mainTemplate.jsp</b></i></p>
<div class="dp-highlighter" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #e7e5dc; color: #222222; font-family: Consolas, Monaco, 'Courier New', Courier, monospace; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; margin: 18px 0px !important; orphans: 2; overflow: auto; padding-top: 1px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; width: 564.2833251953125px; word-spacing: 0px;">
<div class="bar" style="padding-left: 45px;">
<div class="tools" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-style: solid; border-left-width: 3px; color: silver; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9px; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; padding: 3px 8px 10px 10px;"><a style="background-color: inherit; background-image: none; background-position: initial initial; background-repeat: initial initial; border: none; color: #a0a0a0; font-size: 9px; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: initial;" href="https://dineshonjava.com/2012/12/spring-mvc-with-hibernate-crud-example.html#">view plain</a><a style="background-color: inherit; background-image: none; background-position: initial initial; background-repeat: initial initial; border: none; color: #a0a0a0; font-size: 9px; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: initial;" href="https://dineshonjava.com/2012/12/spring-mvc-with-hibernate-crud-example.html#">print</a><a style="background-color: inherit; background-image: none; background-position: initial initial; background-repeat: initial initial; border: none; color: #a0a0a0; font-size: 9px; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: initial;" href="https://dineshonjava.com/2012/12/spring-mvc-with-hibernate-crud-example.html#">?</a></div>
</div>
<ol class="dp-xml" style="background-color: white; border: none; color: #5c5c5c; list-style: decimal; margin: 0px 0px 1px 45px !important; padding: 0px;">
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"><;%@ page language=&#8221;java&#8221; contentType=&#8221;text/html; charset=ISO-8859-1&#8243;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> pageEncoding=&#8221;ISO-8859-1&#8243;%>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"><;html>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;head>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"></li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"> <;title>;<br />
<;tiles:insertAttribute name=&#8221;title&#8221; ignore=&#8221;true&#8221;>;<;/tiles:insertAttribute>;<br />
<;/title>;<br />
<;/head>;<br />
<;body>;<br />
<;table border=&#8221;1&#8243; cellpadding=&#8221;2&#8243; cellspacing=&#8221;2&#8243; align=&#8221;left&#8221;>;<br />
<;tr>;<br />
<;td colspan=&#8221;2&#8243; align=&#8221;center&#8221;>;<br />
<;tiles:insertAttribute name=&#8221;header&#8221;>;<;/tiles:insertAttribute>;<br />
<;/td>;<br />
<;/tr>;<br />
<;tr>;<br />
<;td>;<br />
<;tiles:insertAttribute name=&#8221;menu&#8221;>;<;/tiles:insertAttribute>;<br />
<;/td>;<br />
<;td>;<br />
<;tiles:insertAttribute name=&#8221;body&#8221;>;<;/tiles:insertAttribute>;<br />
<;/td>;<br />
<;/tr>;<br />
<;tr>;<br />
<;td colspan=&#8221;2&#8243; align=&#8221;center&#8221;>;<br />
<;tiles:insertAttribute name=&#8221;footer&#8221;>;<;/tiles:insertAttribute>;<br />
<;/td>;<br />
<;/tr>;<br />
<;/table>;</li>
<li class="" style="background-color: #f8f8f8; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: #5c5c5c; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"><;/body>;</li>
<li class="alt" style="background-color: white; border-left-color: #6ce26c; border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; text-indent: 0px; padding: 0px 3px !important 0px 10px !important; margin: 0px !important 0px !important 0.25em 0px !important;"><;/html>;</li>
</ol>
</div>
<p><img src="https://dineshonjava.com/wp-content/uploads/2012/12/tilesapp.jpg" alt="tilesapp" border="0" /><br />
Once you are done with creating source and configuration files, export your application. Right click on your application and use<b> Export->; WAR </b>File option and save your <i><b>Spring3TilesApp.war</b></i> file in Tomcat&#8217;s webapps folder.</p>
<p>Now start your Tomcat server and make sure you are able to access other web pages from webapps folder using a standard browser. Now try a URL <i><b>http://localhost:8080/sdnext/</b></i> and you should see the following result if everything is fine with your Spring Web Application:</p>
<div class="separator" style="clear: both; text-align: center;"><img src="https://dineshonjava.com/wp-content/uploads/2012/12/tileoutput.jpg" border="0" /></div>
<p>Now we click on the <i><b>List of Employee</b></i> link on the <b>Menu section</b> then we get the following output screen we observe that only body of the mainTemplate is refreshed.</p>
<div class="separator" style="clear: both; text-align: center;"><img src="https://dineshonjava.com/wp-content/uploads/2012/12/tileoutput2.jpg" border="0" /></div>
<p><i><b>Dwonload this Application SourceCode+Libs</b></i></p>
<p><a href="https://sites.google.com/site/dinesh9582486434/my-forms/Spring3TilesApp.zip?attredirects=0&;d=1" target="_blank" rel="noopener"><i><b>Spring3TilesApp.zip</b></i></a></p>
<div style="background-color: #f2f9fc; border: 1px solid #c9e6f2; border-radius: 3px; padding: 16px; line-height: 1.45;"><span style="color: red; font-size: x-large; text-align: center;"><b>Spring MVC Related Posts</b></span></p>
<ul>
<li><b><a href="https://dineshonjava.com/spring-web-mvc-framework-chapter-38/"><span style="color: red;">Spring MVC Web Tutorial</span></a></b></li>
<li><b><a href="https://dineshonjava.com/spring-mvc-interview-questions-and-answers/"><span style="color: red;">Spring MVC Interview Questions</span></a></b></li>
<li><b><a href="https://dineshonjava.com/introduction-to-mvc/"><span style="color: red;">MVC Design Pattern</span></a></b></li>
<li><b><a href="https://dineshonjava.com/what-is-dispatcherservlet-in-spring-and-its-uses/"><span style="color: red;">Spring MVC DispatcherServlet </span></a></b></li>
<li><b><a href="https://dineshonjava.com/difference-between-applicationcontext-webapplicationcontext-in-spring-mvc/"><span style="color: red;">Spring MVC WebApplicationContext and Root Application Context</span></a></b></li>
<li><b><a href="https://dineshonjava.com/stereotype-annotations-in-spring/"><span style="color: red;">Spring MVC @Controller Annotation</span></a></b></li>
<li><b><a href="https://dineshonjava.com/requestmapping-annotation-in-spring-mvc/"><span style="color: red;">Spring MVC @RequestMapping Annotation</span></a></b></li>
<li><b><a href="https://dineshonjava.com/requestparam-annotation-in-spring-mvc-with-example/"><span style="color: red;">Spring MVC @RequestParam Annotation</span></a></b></li>
<li><b><a href="https://dineshonjava.com/difference-between-applicationcontext-webapplicationcontext-in-spring-mvc/"><span style="color: red;">Spring MVC ContextLoaderListener</span></a></b></li>
<li><b><a href="https://dineshonjava.com/requestparam-vs-pathvariable-annotations-in-spring-mvc/"><span style="color: red;">Spring MVC @RequestParam and @PathVariable annotations</span></a></b></li>
<li><b><a href="https://dineshonjava.com/spring-30-mvc-hello-world-example/"><span style="color: red;">Spring MVC Hello World Example</span></a></b></li>
<li><b><a href="https://dineshonjava.com/spring-exception-handling-example/"><span style="color: red;">Spring MVC Exception Handling Example</span></a></b></li>
<li><b><a href="https://dineshonjava.com/spring-mvc-with-hibernate-crud-example/"><span style="color: red;">Spring MVC with Hibernate CRUD Example</span></a></b></li>
<li><b><a href="https://dineshonjava.com/spring-3-mvc-tiles-plugin-with-example/"><span style="color: red;">Spring MVC Tiles Plugin with Example</span></a></b></li>
<li><b><a href="https://dineshonjava.com/spring-3-mvc-and-interceptor-with/"><span style="color: red;">Spring MVC Interceptor with example</span></a></b></li>
<li><b><a href="https://dineshonjava.com/integration-spring-mvc3-and-mongodb/"><span style="color: red;">Spring MVC with MongoDB CRUD Example</span></a></b></li>
<li><b><a href="https://dineshonjava.com/spring-3-mvc-internationalization/"><span style="color: red;">Spring MVC Internationalization &; Localization with Example</span></a></b></li>
</ul>
<p> ;</p>
</div>
<p><i><b><b style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: small; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: center; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><i> </i><;<;</b><b style="background-color: white; color: #222222; font-family: Arial,Tahoma,Helvetica,FreeSans,sans-serif; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: center; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><a style="color: #888888;" href="https://dineshonjava.com/spring-web-mvc-framework-chapter-38/">Spring Web MVC Framework</a></b><b style="background-color: white; color: #222222; font-family: Arial,Tahoma,Helvetica,FreeSans,sans-serif; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: center; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> |<a style="color: #888888;" href="https://dineshonjava.com/spring-tutorial/">index</a>| <a href="https://dineshonjava.com/spring-3-mvc-and-interceptor-with/"><i>Spring 3 MVC Framework with Interceptor</i></a></b></b></i><i><b><b style="background-color: white; color: #222222; font-family: Arial,Tahoma,Helvetica,FreeSans,sans-serif; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: center; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">>;>;</b> </b></i></p>
</div>
<div class="wp-post-navigation"> 
									 <div class="wp-post-navigation-pre"> 
									 <a href="https://dineshonjava.com/spring-mvc-with-hibernate-crud-example/">Previous</a> 
									 </div> 
									 <div class="wp-post-navigation-next"> 
									 <a href="https://dineshonjava.com/spring-3-mvc-and-interceptor-with/">Next</a> 
									 </div> 
									</div>
<script type="text/javascript">
jQuery(document).ready(function($) {
 $.post('https://dineshonjava.com/wp-admin/admin-ajax.php', {action: 'mts_view_count', id: '615'});
});
</script>
Strategy Design Patterns We can easily create a strategy design pattern using lambda. To implement…
Decorator Pattern A decorator pattern allows a user to add new functionality to an existing…
Delegating pattern In software engineering, the delegation pattern is an object-oriented design pattern that allows…
Technology has emerged a lot in the last decade, and now we have artificial intelligence;…
Managing a database is becoming increasingly complex now due to the vast amount of data…
Overview In this article, we will explore Spring Scheduler how we could use it by…