Yup, this is what my WEB-INF/lib looks like: 19.04.2002 16:36 206'289 crimson.jar 19.04.2002 16:36 186'980 jaxen-full.jar 19.04.2002 16:36 6'727 jdbc2_0-stdext.jar 19.04.2002 16:36 21'239 jstl.jar 19.04.2002 16:36 23'390 saxpath.jar 19.04.2002 16:36 577'152 standard.jar 23.04.2002 03:46 51'640 string.jar 19.04.2002 16:36 1'002'741 xalan.jar
And this is what my web.xml looks like: <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app> <taglib> <taglib-uri>http://java.sun.com/jstl/core</taglib-uri> <taglib-location>/WEB-INF/c.tld</taglib-location> </taglib> <taglib> <taglib-uri>http://java.sun.com/jstl/xml</taglib-uri> <taglib-location>/WEB-INF/x.tld</taglib-location> </taglib> <taglib> <taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri> <taglib-location>/WEB-INF/fmt.tld</taglib-location> </taglib> <taglib> <taglib-uri>http://java.sun.com/jstl/sql</taglib-uri> <taglib-location>/WEB-INF/sql.tld</taglib-location> </taglib> <taglib> <taglib-uri>http://jakarta.apache.org/taglibs/string-1.0</taglib-uri> <taglib-location>/WEB-INF/string.tld</taglib-location> </taglib> </web-app> I looked at the workaround that Ryan posted, but wasn't too sure about the CATALINA_HOME. I did create C:\Program Files\Apache Tomcat 4.0\temp but that didn't change anything. Regards, Eric -----Original Message----- From: Shawn Bayern [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 23. April 2002 18:41 To: Tag Libraries Users List Subject: RE: Nesting tags from different tag libraries? Eric, You need to install the individaul JAR files for all taglibs you want to use (e.g., standard.jar & jstl.jar, or string.jar) in the WEB-INF/lib directory of your web application. Once you've done that, your container should recognize the tag libraries. Tomcat 4.0.3 has a bug whereby it doesn't recognize them by default unless you modify your web.xml file, but Ryan Lubke posted a workaround yesterday (And you can also upgrade to Tomcat 4.0.4B2). -- Shawn Bayern "JSP Standard Tag Library" http://www.jstlbook.com (coming this summer from Manning Publications) On Tue, 23 Apr 2002 [EMAIL PROTECTED] wrote: > Ok, I now installed the String Tag Library, and it works fine on its own. I > installed it into my JSTL directory C:\Program Files\Apache Tomcat > 4.0\webapps\jstl\ and put the *.war into C:\Program Files\Apache Tomcat > 4.0\webapps\ (where I also put the JSTL standard-examples.war). > So now I can use the JSTL examples from > http://localhost:8080/standard-examples/index.html and I can use the String > Tag exmples from http://localhost:8080/string-examples/index.html - > everything works fine. > > However, I tried modifying the Iterator example > http://localhost:8080/standard-examples/iterators/Simple.jsp to include > String tags, i.e. the first lines read > <%@ taglib prefix="c" uri="http://java.sun.com/jstl/ea/core" %> > <%@ taglib prefix="str" uri="http://jakarta.apache.org/taglibs/string-1.0" > %> > (I didn't write String tags yet, since I always take baby steps...) > > and it crashes: > org.apache.jasper.JasperException: This absolute uri > (http://jakarta.apache.org/taglibs/string-1.0) cannot be resolved in either > web.xml or the jar files deployed with this application > at > org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:194) > at > org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:174) > at > org.apache.jasper.compiler.JspParseEventListener.processTaglibDirective(JspP > arseEventListener.java:1162) > at > org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEve > ntListener.java:758) > at > org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingList > ener.java:121) > etc. etc. > > Is there anything blindingly stupid I did wrong? ;-) > > Regards, > Eric > > -----Original Message----- > From: Shawn Bayern [mailto:[EMAIL PROTECTED]] > Sent: Dienstag, 23. April 2002 16:57 > To: Tag Libraries Users List > Subject: Re: Nesting tags from different tag libraries? > > > On Tue, 23 Apr 2002 [EMAIL PROTECTED] wrote: > > > Since JSTL doesn't do anything more than more or less writing stuff > > into a HTML page, I looked at the possibility of using another tag > > library for string manipulation. The String Tag library looks > > excellent. However, I'm not sure if something like this would work: > > > > <str:substring start="1" end="10"> > > <c:out value="${someText}"/> > > </str:substring> > > > > At what point does the starting tag get the contained body? Will it > > only get the JSTL tag or will it get the content of the JSTL tag? The > > first case of course wouldn't help... > > Yes - JSP tags within other JSP tags get evaluated by the container as > usual (and so your example will work) when the outer tag is declared as > having a body type of "JSP" (versus "tagdependent") in its TLD. > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>