<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
If your address should be like this? (from AppendixA.pdf) Terveisin, x--- Juha Halmu ---y http://portal.halmu.net ---------------------------------------------------------------------------- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. -------------------------------------------------------------------------- "For every complex problem, there is a solution that is simple, neat, and wrong." -- H.L. Mencken (1880-1956) -----Original Message----- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Jan Arenö Sent: 29. elokuuta 2002 16:08 To: [EMAIL PROTECTED] Subject: SV: Jakarta Taglib When I took a "random" tdl file, c.tdl, to test with I got an error I run tomcat on a win xp mashine, didn't say that before. How do I set/change the classpath? I can't find it in the conf files... I'm not used to handle the install, normally I just have apache installed as a "come-along" with Oracle. But now I want to learn how to install the whole kit (I don't like to sit with old stuff, and the Oracle 8i installation is quite old) Info: JSP file CAT_HOME\webapps\test\index.jsp: --------------------------------------------------------------------------- <%@ taglib uri="http://jakarta.apache.org/taglibs/c" prefix="tlib" %> (all I have) WEB-INF (CAT_HOME\webapps\ROOT\WEB-INF) default install: --------------------------------------------------------------------------- <?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://jakarta.apache.org/taglibs/c</taglib-uri> <taglib-location>/WEB-INF/c.tld</taglib-location> </taglib> </web-app> Error: --------------------------------------------------------------------------- type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: This absolute uri (http://jakarta.apache.org/taglibs/c) 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:1170) at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEve ntListener.java:765) at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingList ener.java:125) at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:255) at org.apache.jasper.compiler.Parser.parse(Parser.java:1145) at org.apache.jasper.compiler.Parser.parse(Parser.java:1103) at org.apache.jasper.compiler.Parser.parse(Parser.java:1099) at org.apache.jasper.compiler.ParserController.parse(ParserController.java:214) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:210) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:176) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:188) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1027) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125 ) at java.lang.Thread.run(Unknown Source) -----Ursprungligt meddelande----- Från: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]För Shawn Bayern Skickat: den 29 augusti 2002 14:47 Till: [EMAIL PROTECTED] Ämne: Re: Jakarta Taglib On Thu, 29 Aug 2002, Jan Arenö wrote: > Then I am suppost to change my web.xml file I guess. But none of the jar > files matches the tld files, isn't they suppost to match? How sould my > WEB-INF look like? I guess something 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://jakarta.apache.org/taglibs/{something}</taglib-uri> > <taglib-location>/WEB-INF/{something}.tld</taglib-location> > </taglib> > </web-app> That's fine. The names of JAR files need not match the names of TLD files. Since you're using JSP 1.2, you can also take advantage of TLD auto-discovery for JAR files that include TLDs. This is the case at least for the Standard Taglib, which is Jakarta Taglibs's implementation of JSTL. You might want to contact [EMAIL PROTECTED] if you have any further questions about Jakarta Taglibs in particular. -- Shawn Bayern "JSTL in Action" http://www.jstlbook.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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com