title: EL tag not working with maven in tomcat 7
body: <p>EL tags not rendering when jsp page is called.
      <code>&lt;c:out value="${uploadedImage.value.getDocumentName()}"/&gt;</code> </p>
  
  <p>prints the ${uploadedImage.value.getDocumentName()}</p>
  
  <p>my pom file is </p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt;
  
  &lt;url&gt;http://maven.apache.org&lt;/url&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;mysql&lt;/groupId&gt;
      &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;
      &lt;version&gt;5.1.9&lt;/version&gt;
  &lt;/dependency&gt; 
  
  &lt;dependency&gt;
      &lt;groupId&gt;dom4j&lt;/groupId&gt;
      &lt;artifactId&gt;dom4j&lt;/artifactId&gt;
      &lt;version&gt;1.6.1&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;commons-logging&lt;/groupId&gt;
      &lt;artifactId&gt;commons-logging&lt;/artifactId&gt;
      &lt;version&gt;1.1.1&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;commons-collections&lt;/groupId&gt;
      &lt;artifactId&gt;commons-collections&lt;/artifactId&gt;
      &lt;version&gt;3.2.1&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;cglib&lt;/groupId&gt;
      &lt;artifactId&gt;cglib&lt;/artifactId&gt;
      &lt;version&gt;2.2&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
             &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
          &lt;artifactId&gt;hibernate-core&lt;/artifactId&gt;
          &lt;version&gt;4.3.4.Final&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;javax.transaction&lt;/groupId&gt;
      &lt;artifactId&gt;jta&lt;/artifactId&gt;
      &lt;version&gt;1.1&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;org.apache.tomcat&lt;/groupId&gt;
      &lt;artifactId&gt;tomcat-servlet-api&lt;/artifactId&gt;
      &lt;version&gt;7.0.12&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;org.apache.tomcat&lt;/groupId&gt;
      &lt;artifactId&gt;tomcat-el-api&lt;/artifactId&gt;
      &lt;version&gt;7.0.12&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;org.apache.tomcat&lt;/groupId&gt;
      &lt;artifactId&gt;tomcat-jsp-api&lt;/artifactId&gt;
      &lt;version&gt;7.0.12&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;taglibs&lt;/groupId&gt;
      &lt;artifactId&gt;standard&lt;/artifactId&gt;
      &lt;version&gt;1.1.2&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
      &lt;artifactId&gt;jstl&lt;/artifactId&gt;
      &lt;version&gt;1.2&lt;/version&gt;
      &lt;scope&gt;runtime&lt;/scope&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;log4j&lt;/groupId&gt;
      &lt;artifactId&gt;log4j&lt;/artifactId&gt;
      &lt;version&gt;1.2.17&lt;/version&gt;
  &lt;/dependency&gt;
  
  
  &lt;dependency&gt;
      &lt;groupId&gt;commons-fileupload&lt;/groupId&gt;
      &lt;artifactId&gt;commons-fileupload&lt;/artifactId&gt;
      &lt;version&gt;1.2&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;commons-io&lt;/groupId&gt;
      &lt;artifactId&gt;commons-io&lt;/artifactId&gt;
      &lt;version&gt;2.4&lt;/version&gt;
  &lt;/dependency&gt;                    
  &lt;/dependencies&gt;
  &lt;build&gt;
      &lt;finalName&gt;ImageManagement&lt;/finalName&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;version&gt;3.0&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;source&gt;1.7&lt;/source&gt;
                  &lt;target&gt;1.7&lt;/target&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>My web.xml is </p>
  
  <pre><code>&lt;!DOCTYPE web-app PUBLIC
  "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
  "http://java.sun.com/dtd/web-app_2_3.dtd" &gt;
  
  &lt;web-app&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>Web app have all the Servlet mapping.</p>
  
  <p>My project Configuration is 
  Tomcat 7.0
  Eclipse kepler</p>
  
  <pre><code>&lt;c:if test = "${not empty uploadedImages}"&gt;
  &lt;% int i = 0; %&gt;
      &lt;c:forEach var="uploadedImage" items="${uploadedImages}"&gt;
          &lt;tr&gt;
              &lt;% i++; %&gt;
              &lt;td&gt;&lt;%= i %&gt;&lt;/td&gt;
              &lt;td&gt;&lt;c:out value="${uploadedImage.value.getDocumentName()}"/&gt;&lt;/td&gt;
              &lt;td&gt;&lt;c:out value="${uploadedImage.value.getDocumentSize()}"/&gt;&lt;/td&gt;
              &lt;!-- &lt;td&gt;&lt;img src="image?id=${uploadedImage.value.getUserRepositryId()}" style = "height : 80px; width : 50px" alt = "image here"/&gt;&lt;/td&gt;--&gt;
  
              &lt;td&gt;
                  &lt;a href = "delete?id=${uploadedImage.value.getUserRepositryId()}"&gt; Delete &lt;/a&gt;
                  &lt;a href = "edit?id=${uploadedImage.value.getUserRepositryId()}"&gt; Edit &lt;/a&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
      &lt;/c:forEach&gt;
  &lt;/c:if&gt;
  </code></pre>
  
  <p>uploadedImages is a HashMap variable which is set is the Session object.
  it fetches the Saved images from the Database and saved it the HashMap.
  Database part is working fine it loads the images from the Database and saved them in the HashMap.</p>
  
  <p>The only problem is in working EL tag.
  This project is working fine without maven.</p>
  
  <p>UserRepositryDTO.java</p>
  
  <pre><code>public class UserRepositryDTO {
  private int userRepositryId;
  private int userId;
  private String documentName;
  private long documentSize;
  
  private byte[] document;
  private String message;
  
  
  /**
   * @return the message
   */
  public String getMessage() {
      return message;
  }
  /**
   * @param message the message to set
   */
  public void setMessage(String message) {
      this.message = message;
  }
  /**
   * @return the userRepositryId
   */
  public int getUserRepositryId() {
      return userRepositryId;
  }
  /**
   * @return the userId
   */
  public int getUserId() {
      return userId;
  }
  /**
   * @return the documentName
   */
  public String getDocumentName() {
      return documentName;
  }
  /**
   * @return the documentSize
   */
  public long getDocumentSize() {
      return documentSize;
  }
  
  /**
   * @return the document
   */
  public byte[] getDocument() {
      return document;
  }
  /**
   * @param userRepositryId the userRepositryId to set
   */
  public void setUserRepositryId(int userRepositryId) {
      this.userRepositryId = userRepositryId;
  }
  /**
   * @param userId the userId to set
   */
  public void setUserId(int userId) {
      this.userId = userId;
  }
  /**
   * @param documentName the documentName to set
   */
  public void setDocumentName(String documentName) {
      this.documentName = documentName;
  }
  /**
   * @param documentSize the documentSize to set
   */
  public void setDocumentSize(long documentSize) {
      this.documentSize = documentSize;
  }
  
  /**
   * @param document the document to set
   */
  public void setDocument(byte[] document) {
      this.document = document;
  }
  }
  </code></pre>
  
  <p>UserDTO.java</p>
  
  <pre><code>public class UserDTO {
  private int userId;
  private String username;
  private String message;
  private long totalSize;
  private Map&lt;Integer,UserRepositryDTO&gt; userRepositry;
  
  /**
   * @return the totalSize
   */
  public long getTotalSize() {
      return totalSize;
  }
  /**
   * @param totalSize the totalSize to set
   */
  public void setTotalSize(long totalSize) {
      this.totalSize = totalSize;
  }
  
  /**
   * @return the userId
   */
  public int getUserId() {
      return userId;
  }
  /**
   * @return the username
   */
  public String getUsername() {
      return username;
  }
  /**
   * @return the message
   */
  public String getMessage() {
      return message;
  }
  /**
   * @param userId the userId to set
   */
  public void setUserId(final int userId) {
      this.userId = userId;
  }
  /**
   * @param username the username to set
   */
  public void setUsername(final String username) {
      this.username = username;
  }
  /**
   * @param message the message to set
   */
  public void setMessage(final String message) {
      this.message = message;
  }
  public Map&lt;Integer,UserRepositryDTO&gt; getUserRepositry() {
      return userRepositry;
  }
  public void setUserRepositry(Map&lt;Integer,UserRepositryDTO&gt; userRepositry) {
      this.userRepositry = userRepositry;
  }
  }
  </code></pre>
  
  <p>The problem is due to the different version of servlet jsp jstl. i dont know the correct version.</p>