Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002434 [Resin] minor always 02-13-08 09:15 02-13-08 14:05
Reporter ferg View Status public  
Assigned To ferg
Priority high Resolution unable to reproduce  
Status closed   Product Version 3.1.5
Summary 0002434: JSTL functions
Description (rep by Ron Pitts)

I'm trying to setup a custom JSP function without any luck using 3.1.2
 
I've created the following TestFunction.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>tf</short-name>
    <uri>http://testme.com/taglibs/TestFunction</uri> [^]
    <function>
        <name>testMethod</name>
        <function-class>
            jw.jaas.beans.TestFunction
        </function-class>
        <function-signature>
            java.lang.String testMethod( java.lang.String, int, boolean)
        </function-signature>
    </function>
</taglib>
 
Updated the web.xml
 
<taglib>
    <taglib-uri>http://testme.com/taglibs/TestFunction</taglib-uri> [^]
    <taglib-location>/WEB-INF/TestFunction.tld</taglib-location>
 </taglib>
 
Created the following TestFunction.java
 
 
package jw.jaas.beans;
import java.util.*;
import java.sql.*;
import javax.sql.*;
import javax.naming.*;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class TestFunction {
    public static String testMethod(String text, int number, boolean logic) {
        return "it works";
    }
}
 
Added the following to a test.jsp
 
 
<%@ taglib prefix='tf' uri='http://clicklovers.com/taglibs/TestFunction'%> [^]
<tf:testMethod('This is a good test',123,true)>
 
 
And receive the following:
 
 
'testMethod' is an unknown tag in tag library 'http://testme.com/taglibs/TestFunction'. [^]
 
 
Additional Information
Attached Files

- Relationships

- Notes
(0002769)
ferg
02-13-08 14:05

jsp/18if

Checked with this example on the 3.1.5 snapshot and it works fine. If you can reproduce the issue on 3.1.5, please add logging="finer" to see if there is more information:

  <logger name="" level="finer"/>
 

- Issue History
Date Modified Username Field Change
02-13-08 09:15 ferg New Issue
02-13-08 09:26 ferg Status new => acknowledged
02-13-08 14:05 ferg Note Added: 0002769
02-13-08 14:05 ferg Assigned To  => ferg
02-13-08 14:05 ferg Status acknowledged => closed
02-13-08 14:05 ferg Resolution open => unable to reproduce
02-13-08 14:05 ferg Fixed in Version  => 3.1.5


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