Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001730 [Resin] major always 05-09-07 14:34 05-14-07 09:11
Reporter webvir View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 3.1.1
Summary 0001730: EL functions in tag files stopped working
Description EL functions in custom tag files are not working since 3.1.1.

I'm getting message: 'prefix:function' is an unknown function.

See sample in additional info.
Additional Information //broken.tag
<%@ taglib prefix="myfn" uri="/WEB-INF/myfn.tld" %>
${myfn:someStuff("1")}



//test.jsp
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags/" %>
<tags:broken/>


//web.xml
<web-app
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-app_2_4.xsd" [^]
version="2.4">
 <jsp-config>
  <taglib>
   <taglib-uri>/WEB-INF/myfn.tld</taglib-uri>
   <taglib-location>/WEB-INF/myfn.tld</taglib-location>
  </taglib>
 </jsp-config>
</web-app>


//myfn.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 [^] web-jsptaglibrary_2_0.xsd"
    version="2.0">

    <tlib-version>1.0</tlib-version>
    <short-name>twfn</short-name>
    <uri>/WEB-INF/myfn.tld</uri>

    <function>
        <name>someStuff</name>
        <function-class>java.lang.Integer</function-class>
        <function-signature>
            int parseInt(java.lang.String arg)
        </function-signature>
    </function>
</taglib>
Attached Files

- Relationships

- Notes
(0001906)
webvir
05-14-07 08:11

Hmm, I see from JavaJspGenerator source that you intentionally filtering support for el functions in tag files. Why?
 
(0001907)
ferg
05-14-07 09:11

jsp/10f0
 

- Issue History
Date Modified Username Field Change
05-09-07 14:34 webvir New Issue
05-09-07 14:34 webvir Issue Monitored: webvir
05-14-07 08:11 webvir Note Added: 0001906
05-14-07 09:11 ferg Note Added: 0001907
05-14-07 09:11 ferg Assigned To  => ferg
05-14-07 09:11 ferg Status new => closed
05-14-07 09:11 ferg Resolution open => fixed
05-14-07 09:11 ferg Fixed in Version  => 3.1.2


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
32 total queries executed.
27 unique queries executed.
Powered by Mantis Bugtracker