Instead of:
<!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>
...
</web-app>
Use:
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
...
</web-app>
Get rid of the <taglib> element and the TLD file, as of JSP 1.2 you don't need
them for packaged taglibs. Just use the proper URI in the taglib directive in
your JSP:
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
Quoting David Wall <[EMAIL PROTECTED]>:
> > Since you're using a JSP 2.0 container, you should be able to just do:
> >
> > <p>1 + 2 + 3 = ${1+2+3}</p>
> >
> > Make sure you're using a Servlet 2.4 deployment descriptor.
>
> That didn't work for me. Perhaps it's your last comment. What does it
> mean
> to have a 2.4 deployment descriptor for the JSP page? Maybe that's where
> I've gone wrong... It seems like it has to be just a configuration issue.
> I have the jstl.jar and standard.jar in the WEB-INF/lib directory, and
> I've
> put the c.tld in WEB-INF and updated web.xml to point to it using:
>
> <taglib>
> <taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
> <taglib-location>/WEB-INF/c.tld</taglib-location>
> </taglib>
>
> Thanks,
> David
--
Kris Schneider <mailto:[EMAIL PROTECTED]>
D.O.Tech <http://www.dotech.com/>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]