This is how we set up our own taglibs.
on the JSP pages, we include this line:
<%@ taglib uri="my-taglib" prefix="mytags" %>
In the web.xml file we include this:
<taglib>
<taglib-uri>my-taglib</taglib-uri>
<taglib-location>/WEB-INF/tlds/mytaglib.tld</taglib-location>
</taglib>
HTH,
Pete
Paolo Barolat-Romana wrote:
> If I move my taglib from $app_home$/jsp/taglib.tld to $app_home$/taglib.tld
> and change the taglib tag in my jsp from <%@ taglib uri="/jsp/taglib.tld"
> prefix="hello"%> to <%@ taglib uri="/taglib.tld" prefix="hello"%>,
> then it works. This definitely has to be a config problem. Does anyone
> know what I need to change?
>
> Paolo
>
> ----- Original Message -----
> From: "Paolo Barolat-Romana" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, February 06, 2001 8:08 PM
> Subject: Parse Error in the tag library
>
> > I get the following error when I try to access a jsp that has tags in
> > it. My tag library resides in $app_home$/jsp/taglib.tld. I know
> > that the jsp and tags work properly because I have used them on
> > WebSphere (which also uses the Jasper parser). Could someone explain
> > this?
> > I think it has to do with a configuration setting.
> >
> > Thanks,
> > Paolo
> >
> > org.apache.jasper.JasperException: Unable to open taglibrary
> > /jsp/taglib.tld : Parse Error in the tag library descriptor: Element
> > "web-app" does not allow "servlet" here.
> > java.lang.Throwable(java.lang.String)
> > java.lang.Exception(java.lang.String)
> > javax.servlet.ServletException(java.lang.String)
> > org.apache.jasper.JasperException(java.lang.String)
> > void
> >
> org.apache.jasper.compiler.JspParseEventListener.handleDirective(java.lang.S
> tring,
> > org.apache.jasper.compiler.Mark, org.apache.jasper.compiler.Mark,
> > java.util.Hashtable)
> > void
> >
> org.apache.jasper.compiler.DelegatingListener.handleDirective(java.lang.Stri
> ng,
> > org.apache.jasper.compiler.Mark, org.apache.jasper.compiler.Mark,
> > java.util.Hashtable)
> > boolean
> >
> org.apache.jasper.compiler.Parser$Directive.accept(org.apache.jasper.compile
> r.ParseEventListener,
> > org.apache.jasper.compiler.JspReader, org.apache.jasper.compiler.Parser)
> >
> > void org.apache.jasper.compiler.Parser.parse(java.lang.String,
> > java.lang.Class [])
> > void org.apache.jasper.compiler.Parser.parse(java.lang.String)
> > void org.apache.jasper.compiler.Parser.parse()
> > boolean org.apache.jasper.compiler.Compiler.compile()
> > boolean org.apache.jasper.runtime.JspServlet.loadJSP(java.lang.String,
> > java.lang.String, boolean, javax.servlet.http.HttpServletRequest,
> > javax.servlet.http.HttpServletResponse)
> > void
> >
> org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(javax
> .servlet.http.HttpServletRequest,
> > javax.servlet.http.HttpServletResponse)
> > void
> >
> org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(javax.servlet
> .http.HttpServletRequest,
> > javax.servlet.http.HttpServletResponse, boolean)
> > void
> >
> org.apache.jasper.runtime.JspServlet.serviceJspFile(javax.servlet.http.HttpS
> ervletRequest,
> > javax.servlet.http.HttpServletResponse, java.lang.String,
> > java.lang.Throwable, boolean)
> > void
> >
> org.apache.jasper.runtime.JspServlet.service(javax.servlet.http.HttpServletR
> equest,
> > javax.servlet.http.HttpServletResponse)
> > void
> > javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
> > javax.servlet.ServletResponse)
> > void
> >
> org.apache.tomcat.core.ServletWrapper.handleRequest(org.apache.tomcat.core.R
> equest,
> > org.apache.tomcat.core.Response)
> > void
> >
> org.apache.tomcat.core.RequestDispatcherImpl.forward(javax.servlet.ServletRe
> quest,
> > javax.servlet.ServletResponse)
> > void
> >
> us.pa.state.web.FormServlet.doValidSessionLogic(javax.servlet.http.HttpServl
> etRequest,
> > javax.servlet.http.HttpServletResponse)
> > void
> >
> us.pa.state.web.SessionTimeVerificationServlet.doAppUpLogic(javax.servlet.ht
> tp.HttpServletRequest,
> > javax.servlet.http.HttpServletResponse)
> > void
> >
> us.pa.state.web.ShutDownVerificationServlet.service(javax.servlet.http.HttpS
> ervletRequest,
> > javax.servlet.http.HttpServletResponse)
> > void
> > javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
> > javax.servlet.ServletResponse)
> > void
> >
> org.apache.tomcat.core.ServletWrapper.handleRequest(org.apache.tomcat.core.R
> equest,
> > org.apache.tomcat.core.Response)
> > void
> >
> org.apache.tomcat.core.ContextManager.service(org.apache.tomcat.core.Request
> ,
> > org.apache.tomcat.core.Response)
> > void
> >
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(org.a
> pache.tomcat.service.TcpConnection,
> > java.lang.Object [])
> > void org.apache.tomcat.service.TcpConnectionThread.run()
> > void java.lang.Thread.run()
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
begin:vcard
n:;
x-mozilla-html:FALSE
org:<BR><IMG SRC="http://www.irista.com/logo/irista.gif"><BR><BR><FONT Color=#000080><FONT SIZE=2><B>Bringing Vision to Your Supply Chain
adr:;;;;;;
version:2.1
end:vcard
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]