You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by Hadeel Rashad <hr...@asset.com.eg> on 2004/10/01 01:39:31 UTC

Custom tags

I am developing a custom tag, I was wondering if this is the right place
for my question
 
I developed my tag and then want to use it in a different application
so:
- I deployed a jar file containing the tags I developed
- I took the tld file and placed it under WEB-INF directory in the new
application
- and placed the jar in the lib directory
- I added an entry in the xml file for my tld
- then in my jsp I included <%@ taglib uri="/WEB-INF/jupTaglib.tld"
prefix="JUPFieldValue" %>
 
My questions are:
-          does the jar file have to contain the tld file???
-          When I did the previous steps, I got several errors complying
my jsp one of them saying: -- Error(1): Expecting quoted value, got
character: " -
 
 
Sorry for my long question, hope could anyone help.
 
Thanks

RE: Custom tags

Posted by Hadeel Rashad <hr...@asset.com.eg>.
Thanks trying ' rather than " worked fine

-----Original Message-----
From: Steve Lewis [mailto:smlewis@lordjoe.com] 
Sent: Thursday, September 30, 2004 8:25 AM
To: Tag Libraries Users List
Subject: Re: Custom tags

If you place the tld in the jar JSP 2.0 will find it - there is no need
to 
separately place tld files in WEB-INF
For the other problem within el expressions consider ' rather than "

At 04:39 PM 9/30/2004, you wrote:

>I am developing a custom tag, I was wondering if this is the right
place
>for my question
>
>I developed my tag and then want to use it in a different application
>so:
>- I deployed a jar file containing the tags I developed
>- I took the tld file and placed it under WEB-INF directory in the new
>application
>- and placed the jar in the lib directory
>- I added an entry in the xml file for my tld
>- then in my jsp I included <%@ taglib uri="/WEB-INF/jupTaglib.tld"
>prefix="JUPFieldValue" %>
>
>My questions are:
>-          does the jar file have to contain the tld file???
>-          When I did the previous steps, I got several errors
complying
>my jsp one of them saying: -- Error(1): Expecting quoted value, got
>character: " -
>
>
>Sorry for my long question, hope could anyone help.
>
>Thanks


---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Re: Custom tags

Posted by Steve Lewis <sm...@lordjoe.com>.
If you place the tld in the jar JSP 2.0 will find it - there is no need to 
separately place tld files in WEB-INF
For the other problem within el expressions consider ' rather than "

At 04:39 PM 9/30/2004, you wrote:

>I am developing a custom tag, I was wondering if this is the right place
>for my question
>
>I developed my tag and then want to use it in a different application
>so:
>- I deployed a jar file containing the tags I developed
>- I took the tld file and placed it under WEB-INF directory in the new
>application
>- and placed the jar in the lib directory
>- I added an entry in the xml file for my tld
>- then in my jsp I included <%@ taglib uri="/WEB-INF/jupTaglib.tld"
>prefix="JUPFieldValue" %>
>
>My questions are:
>-          does the jar file have to contain the tld file???
>-          When I did the previous steps, I got several errors complying
>my jsp one of them saying: -- Error(1): Expecting quoted value, got
>character: " -
>
>
>Sorry for my long question, hope could anyone help.
>
>Thanks


---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org