Here you go:
<taglib>
<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/lib/standard.jar</taglib-location>
</taglib>The jar is in that location. And your assumption is correct. I'm using v1.0 of the JSTL downloaded from Apache.
sven morales wrote:
Hi,
Can you paste the relevant section of your
deployment descriptor web.xml for your demo webapp?
Specifically, the <taglib>
<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
<taglib-location>....
Am assuming this is JSP 1.2?
aka_sergio
--- Tim Watts <[EMAIL PROTECTED]> wrote
Hi,
I'm having problems using standard.jar. For a simple page such as this:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@ taglib uri="http://java.sun.com/jstl/core"
prefix="c" %>
</head>
<body>
<p>Remote user: <c:out
value="${request.remoteUser}"/></p>
</body>
</html>
Tomcat 4.1.31 complains that it doesn't know what
c:out is with this exception:
org.apache.jasper.JasperException:
/demo/userinfo-tc.jsp(7,16) No such tag out in the tag library imported with prefix c
Tomcat 5.0.28 under JBoss 3.2.6 gives a little clearer explanation:
org.apache.jasper.JasperException: Unable to read
TLD "META-INF/taglib.tld" from JAR file
"file:/C:/jboss-3.2.6/server/default/tmp/deploy/tmp12024SpeEA.ear-contents/spe.war/WEB-INF/lib/standard.jar":
java.lang.NullPointerException
It appears to be looking for taglib.tld for some
reason. It, in fact, does not exist in the jar. But why is it looking for
this?
The page works fine in WebSphere Studio 5.1.
Has anyone else encountered this? How did you work
around it? Am I doing something wrong? Any insight/experience will be
greatly appreciated.
Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
__________________________________ Do you Yahoo!? Jazz up your holiday email with celebrity designs. Learn more. http://celebrity.mail.yahoo.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
