Shit, thats it....stupid me

thanks Scott, your a champ!!!

On Feb 19, 2008 4:39 AM, Scott Ferguson <[EMAIL PROTECTED]> wrote:

>
>  On Feb 17, 2008, at 2:25 AM, Ron Pitts wrote:
>
>
> [200823%D 21:23:09.803]1:  <%@ taglib prefix='tf' uri='
> http://testme.com/taglibs/TestFunction'%<http://testme.com/taglibs/TestFunction'%25>
> >
> [200823%D 21:23:09.803]2:  <tf:testMethod('This is a good test',123,true)>
>
>
> That syntax isn't part of JSP (unless I've totally missed something.)
>
> The custom functions are in the EL expressions, e.g.
>
> <${tf:testMethod(...)}>
>
> -- Scott
>
>
> [200823%D 21:23:09.803]3:
> [200823%D 21:23:09.803]4:  <HTML>
> [200823%D 21:23:09.803]
> My full web.xml file is as follows :
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <web-app>
> <taglib>
>     <taglib-uri>http://testme.com/taglibs/TestFunction</taglib-uri>
>     <taglib-location>/WEB-INF/TestFunction.tld</taglib-location>
>  </taglib>
> </web-app>
>
> What's missing?
>
> thanks for any help.
>
>
>
>
> On Feb 14, 2008 4:16 AM, Scott Ferguson <[EMAIL PROTECTED]> wrote:
>
> >
> >  On Feb 11, 2008, at 3:20 AM, Ron Pitts wrote:
> >
> >  I'm trying to setup a custom JSP function without any luck using 3.1.2
> >
> > I've created the following TestFunction.tld
> >
> >
> > Thanks for the details.  I've added this as a bug report at
> > http://bugs.caucho.com/view.php?id=2434
> >
> > Your example looks fine to me, so I'm not sure why it's not working.
> >
> > -- Scott
> >
> >
> > <?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/j2eeweb-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'%<http://clicklovers.com/taglibs/TestFunction'%25>
> > >
> > <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'.
> >
> >
> > Any ideas?
> >
> >
> > _______________________________________________
> > resin-interest mailing list
> > resin-interest@caucho.com
> > http://maillist.caucho.com/mailman/listinfo/resin-interest
> >
> >
> >
> > _______________________________________________
> > resin-interest mailing list
> > resin-interest@caucho.com
> > http://maillist.caucho.com/mailman/listinfo/resin-interest
> >
> >
> _______________________________________________
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest
>
>
>
> _______________________________________________
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest
>
>
_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to