Mantis - Resin
Viewing Issue Advanced Details
1281 major always 08-10-06 06:46 08-21-06 09:01
slonopotamus  
ferg  
normal  
closed 3.0.20  
fixed  
none    
none 3.0.22  
0001281: void EL functions with String argument produce garbage output
Affected versions: 3.0.14, 3.0.19, 3.0.20
Expected: empty <body></body> tag.
Actual: garbage character (usually character with code 0) between <body> and </body>
To reproduce: deploy attached JAR-file to Resin and open index.jspx.

Source of ru.hh.resin.elbug.Functions.java:

package ru.hh.resin.elbug;

public class Functions {
  public static void doNothingVoid (final String var) {
  }
}

Source of index.jspx:

<?xml version="1.0" encoding="UTF-8"?>
<jsp:root
    xmlns:tags="urn:jsptld:/WEB-INF/tags.tld"
    xmlns:jsp="http://java.sun.com/JSP/Page" [^]
    xmlns="http://www.w3.org/1999/xhtml" [^]
    version="2.0">
  <jsp:directive.page contentType="text/html" pageEncoding="UTF-8" />
  <html>
    <body>${tags:doNothing("teeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeest")}</body>
  </html>
</jsp:root>

Source of tags.tld:

<?xml version="1.0" encoding="UTF-8" ?>
<taglib xmlns="http://java.sun.com/xml/ns/j2ee" [^] xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" [^] xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee [^] http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd" [^] version="2.0">
  <tlib-version>2.0</tlib-version>
  <short-name>tags</short-name>
  <function>
    <name>doNothing</name>
    <function-class>ru.hh.resin.elbug.Functions</function-class>
    <function-signature>void doNothingVoid(java.lang.String)</function-signature>
  </function>
</taglib>

Notes
(0001462)
ferg   
08-21-06 09:01   
jsp/18i[b-d]