JSTL forEach Loop Example

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 Employee(1, “Subhash Lamba”)); employees.add(new Employee(2,…

Read More
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 Technology Used: String 4.3.0 Maven 2.3.2 Tomcat 7 Java 8 IntelljIDEA 14 Project structure:…

Read More

Spring 4 and fasterxml Jackson are incompatible

Spring 4 and Jackson dependency related issue. Trace: HTTP Status 500 – Handler dispatch failed; nested exception is java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.ObjectWriter.forType(Lcom/fasterxml/jackson/databind/JavaType;)Lcom/fasterxml/jackson/databind/ObjectWriter; type Exception report message Handler dispatch failed; nested exception is…

Read More