title: Custom tag handler not working in tomcat 7, but working ok in tomcat 6
body: <p>i encountered very strange problem with my custom jsp tag - what was working ok when deployed in tomcat 6 is not working in tomcat 7 environment. here is my tag handler class: </p>
  
  <pre><code>private Long millis;
  
  /**
   * Constructor
   */
  public ConvertMillisecondsValueTag() {
      super();
      millis = null;
  }
  
  /**
   * Tag name
   */
  public String getTagName() {
      return "convertMillisValueTag";
  }
  
  public Long getMillis() {
      return this.millis;
  }
  
  
  public void setMillis(Long millis) {
      this.millis = millis;
  }
  
  /**
   * EVAL_PAGE
   */
  public int doEndTag() throws JspTagException {
  
      StringBuilder buff = new StringBuilder();
      long timeInSeconds = this.millis/1000;
      int seconds = (int)(timeInSeconds % 60);  
      int minutes = (int)((timeInSeconds % 3600) / 60);  
      int hours = (int)((timeInSeconds % 86400) / 3600);
      int days = (int)((timeInSeconds / 86400));
      if (days &gt; 0) {
          buff.append(days + " d, ");
      }
      if (hours &gt; 0) {
          buff.append(hours + " h, ");
      }
      if (minutes &gt; 0) {
          buff.append(minutes + " min, ");
      }
      if (seconds &gt; 0) {
          buff.append(seconds + " sec");
      }
      try {
          pageContext.getOut().print(buff.toString());
      } catch (Exception e) {
          e.printStackTrace();
      }       
  
      return TagSupport.EVAL_PAGE;
  }
  
  /**
   * Release this instance of tag
   */
  public void release() {
      this.millis = null;
  }
  </code></pre>
  
  <p>and here my tld definition: </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  </code></pre>
  
  <p>http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
          version="2.0"></p>
  
  <pre><code>&lt;description&gt;Itedge JSP Tag Library&lt;/description&gt;
  &lt;tlib-version&gt;1.0&lt;/tlib-version&gt;
  &lt;short-name&gt;itedge&lt;/short-name&gt;
  &lt;uri&gt;http://www.itedge.sk/tags&lt;/uri&gt;
  
  &lt;tag&gt;
      &lt;description&gt;
          Takes milliseconds input (long) and displays it in
          second, minutes, hours and days
      &lt;/description&gt;
      &lt;name&gt;convertMillisValue&lt;/name&gt;
      &lt;tag-class&gt;com.itedge.solutionmanager.web.tags.ConvertMillisecondsValueTag&lt;/tag-class&gt;
      &lt;body-content&gt;JSP&lt;/body-content&gt;
      &lt;attribute&gt;
          &lt;description&gt;Milliseconds input (long).&lt;/description&gt;
          &lt;name&gt;millis&lt;/name&gt;
          &lt;required&gt;true&lt;/required&gt;
          &lt;rtexprvalue&gt;true&lt;/rtexprvalue&gt;
      &lt;/attribute&gt;
  &lt;/tag&gt;      
  </code></pre>
  
  <p></p>
  
  <p>Here is the use of the tag:</p>
  
  <p></p>
  
  <p>When i deploy the project in tomcat 6, it's working fine, converting milliseconds value and displaying it, but in tomcat 7, it simple doesn't print nothing, and when i set breakpoint in doEndTag method in debug mode, there is no breakpoint match. Do you have any idea, what could be wrong ? I know that tomcat 6 uses servlet 2.5 api and tomcat 7 uses 3.0 servlet api, that's the only clue i have. </p>