JSTL forEach Loop Example

Table of ContentsMaven Dependency:Controller:JSP Page: Maven Dependency: <dependency> <groupId>javax.servlet</groupId> <artifactId>jstl</artifactId> <version>1.2</version> </dependency> Controller: @RequestMapping(value = “jstlForEach”, method = RequestMethod.GET) public String jstlForEach(ModelMap model) { List<Employee> employees = new ArrayList<>(); employees.add(new…

JSTL c:out example

JSTL Maven Dependency: <dependency> <groupId>javax.servlet</groupId> <artifactId>jstl</artifactId> <version>1.2</version> </dependency> Controller @Controller @RequestMapping(“/”) public class HelloController { @RequestMapping(value = “out”,method = RequestMethod.GET) public String printWelcome(ModelMap model) { model.addAttribute(“message”, “Hello JSTL!”); return “out”;…

HIBERNATE CUSTOM RESULT TRANSFORMER

Hibernate Custom Result Transformer

Table of ContentsWhat is need of Hibernate Custom Result Transformer?CustomTransformer.javaHow to use Custom Transformer:Output: What is need of Hibernate Custom Result Transformer? Hibernate provide AliasToBean result transformer, it will be…

Spring MVC cron scheduler

Spring MVC cron scheduler

During application development we require some task should be executed automatically based on particular time interval. for example for banking application credit card bill should be generated by 1st date…

Spring MVC download file example

Spring MVC Download File

This is example of download file from server without steaming. Example of Spring-MVC + File Download Table of ContentsTechnology Used:Project structure:Dependency:Java Code:Configurations:Output: Technology Used: String 4.3.0 Maven 2.3.2 Tomcat 7…

Spring MVC Multiple Controller Example

Spring MVC Multiple Controller Example

Table of Contents1. Overview2. ExampleTechnology Used:2.1 pom.xml2.2 AdminController.java2.3 EmployeeController.java2.4 pages/admin.jsp2.5 pages/employee.jsp2.6 mvc-dispatcher-servlet.xml2.7 web.xml2.8 Output:3. Source Code 1. Overview This article contains Spring MVC Multiple Controller Example. While working with spring application…