Ok,
portal.jsp :
<%@ taglib uri="/WEB-INF/tlds/taglib16.tld" prefix="port" %>
<html>
<port:Portal portlets="first.jsp,second.jsp" columns="bgcolor='#FFFFF'
width=30%, bgcolor='#00FF00'" table="cellspacing=20"/>
</html>
taglib1.6.tld :
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library
1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
<taglib>
<tlibversion>1.1</tlibversion>
<jspversion>1.1</jspversion>
<shortname>Portal</shortname>
<uri>http://coldjava.hypermart.net/servlets/porttag</uri>
<info>Portal template</info>
<tag>
<name>Portal</name>
<tagclass>com.cj.portal.Portal</tagclass>
<bodycontent>empty</bodycontent>
<attribute>
<name>portlets</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>table</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>columns</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<info>Portal template (columns of portlets)</info>
</tag>
<tag>
<name>Portlet</name>
<tagclass>com.cj.portal.Portlet</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>borderColor</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>bodyColor</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>title</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>titleColor</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>titleHeight</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<info>Portlet template (table with border and header)</info>
</tag>
</taglib>
THE ERROR :
A Servlet Exception Has Occurred
org.apache.jasper.JasperException: XML parsing error on file
/WEB-INF/tlds/taglib16.tld: (line 34, col -1): Element "tag" does not allow
"info" here.
at org.apache.jasper.compiler.JspUtil.parseXMLDocJaxp(JspUtil.java:225)
at org.apache.jasper.compiler.JspUtil.parseXMLDoc(JspUtil.java:198)
at
org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:265)
at
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:213)
at
org.apache.jasper.compiler.JspParseEventListener.processTaglibDirective(JspParseEventListener.java:1132)
at
org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:748)
at
org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:121)
at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:243)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1105)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1070)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1066)
at
org.apache.jasper.compiler.ParserController.parse(ParserController.java:217)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:220)
at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:478)
at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:449)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:159)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:171)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:328)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:407)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:251)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:196)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2041)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
at org.apache.catalina.valves.ValveBase.invokeNext(ValveBase.java:242)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:414)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:975)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:159)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:818)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:897)
at java.lang.Thread.run(Thread.java:484)
>From: Tony Einarsson <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
> reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: Are taglibs working in tomcat4 ?????
>Date: Mon, 19 Mar 2001 13:50:41 -0500
>
>A step forward but I am not going to shoot in the dark. Show us the
>complete error and the taglib16.tld file.
>
>Maybe you didn't close a tag?
>
>T.
>
> > -----Original Message-----
> > From: sufi malak [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, March 19, 2001 1:39 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Are taglibs working in tomcat4 ?????
> >
> >
> > I did but never works, and I have now a new error :
> >
> > A Servlet Exception Has Occurred
> > org.apache.jasper.JasperException: XML parsing error on file
> > /WEB-INF/tlds/taglib16.tld: (line 34, col -1): Element "tag" does
> >
> >
> > My file is portal.jsp :
> >
> > <%@ taglib uri="/WEB-INF/tlds/taglib16.tld" prefix= "port" %>
> >
> > <html>
> > <port:Portal portlets="first.jsp,second.jsp" columns="bgcolor='#FFFFF'
> > width=30%, bgcolor='#00FF00'" table="cellspacing=20"/>
> > </html>
> >
> > Thanks
> >
> > >From: Tony Einarsson <[EMAIL PROTECTED]>
> > >Reply-To: A mailing list about Java Server Pages specification and
> > > reference <[EMAIL PROTECTED]>
> > >To: [EMAIL PROTECTED]
> > >Subject: Re: Are taglibs working in tomcat4 ?????
> > >Date: Mon, 19 Mar 2001 13:03:55 -0500
> > >
> > >Maybe you are not specifying the correct URI in the JSP file
> > that uses the
> > >taglib.
> > >
> > >Based on your web.xml, it should be
> > >
> > ><%@ taglib uri="/WEB-INF/tlds/taglib16.tld"
> > prefix"WhatEverYouDecideToUse"
> > >%>
> > >
> > >Keep in mind that the URI is an identifier and so the one
> > you use in the
> > >JSP file needs to match the one you use in the web.xml file,
> > otherwise the
> > >location you specify with <taglib-location> means nothing.
> > >
> > >From the JSP 1.2 PFD
> > >"The taglib directive in a JSP page declares that the page uses a tag
> > >library, uniquely
> > >identifies the tag library using a URI and associates a tag
> > prefix that
> > >will distinguish usage of
> > >the actions in the library.
> > >A JSP container maps the URI used in the taglib directive into a Tag
> > >Library Descriptor
> > >in two steps: it first resolves the URI into a TLD resource
> > path, and then
> > >it derives the TLD
> > >object itself from the TLD resource path."
> > >
> > >T.
> > >
> > > > -----Original Message-----
> > > > From: sufi malak [mailto:[EMAIL PROTECTED]]
> > > > Sent: Monday, March 19, 2001 11:39 AM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Are taglibs working in tomcat4 ?????
> > > >
> > > >
> > > > I am trying to learn taglibs under tomcat4, but I got this error :
> > > > A Servlet Exception Has Occurred
> > > > org.apache.jasper.JasperException: File "/taglib16.tld" not found
> > > >
> > > >
> > > > This is what I have under tomcat4 :
> > > > webapps\portal.jsp
> > > > webapps\first.jsp
> > > > webapps\second.jsp
> > > > webapps\WEB-INF\lib\porttag.jar
> > > > webapps\WEB-INF\tlds\taglib16.tld
> > > > webapps\WEB-INF\web.xml
> > > >
> > > > The web.xml is :
> > > > <?xml version="1.0" encoding="ISO-8859-1"?>
> > > >
> > > > <!DOCTYPE web-app
> > > > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
> > > > "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
> > > >
> > > > <web-app>
> > > > <!-- The Welcome File List -->
> > > > <welcome-file-list>
> > > > <welcome-file>portal.jsp</welcome-file>
> > > > </welcome-file-list>
> > > > <!-- Template Tag Library Descriptor -->
> > > > <taglib>
> > > > <taglib-uri>/WEB-INF/tlds/taglib16.tld </taglib-uri>
> > > > <taglib-location>/WEB-INF/tlds/taglib16.tld </taglib-location>
> > > > </taglib>
> > > > </web-app>
> > > >
> > > > Thanks
> > > >
> > > >
> > > > _________________________________________________________________
> > > > Get your FREE download of MSN Explorer at http://explorer.msn.com
> > > >
> > > > ==============================================================
> > > > =============
> > > > To unsubscribe: mailto [EMAIL PROTECTED] with body:
> > > > "signoff JSP-INTEREST".
> > > > For digest: mailto [EMAIL PROTECTED] with body: "set
> > > > JSP-INTEREST DIGEST".
> > > > Some relevant FAQs on JSP/Servlets can be found at:
> > > >
> > > > http://java.sun.com/products/jsp/faq.html
> > > > http://www.esperanto.org.nz/jsp/jspfaq.html
> > > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> > > >
> > >
> > >=============================================================
> > ==============
> > >To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > >JSP-INTEREST".
> > >For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> > >DIGEST".
> > >Some relevant FAQs on JSP/Servlets can be found at:
> > >
> > > http://java.sun.com/products/jsp/faq.html
> > > http://www.esperanto.org.nz/jsp/jspfaq.html
> > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
> > _________________________________________________________________
> > Get your FREE download of MSN Explorer at http://explorer.msn.com
> >
> > ==============================================================
> > =============
> > To unsubscribe: mailto [EMAIL PROTECTED] with body:
> > "signoff JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set
> > JSP-INTEREST DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> > http://java.sun.com/products/jsp/faq.html
> > http://www.esperanto.org.nz/jsp/jspfaq.html
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
>DIGEST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets