> On Jul 19, 2005, at 4:53 PM, Dave Newton wrote: > > >> I'm new to struts, and to web development in general, and after > >> tinkering with the struts tag libraries, I've decided to > switch to > >> using the JSTL tag library. This requires JSP 2.0 support, which > >> I should have, as I am using Tomcat 5.5. > > > > No it doesn't. > > True, but using the oh-so-groovy EL syntax without being forced to > use <c:out /> is a thing of beauty, and *does* require JSP 2.0. > > It seems to me that if the taglib JAR was configured properly (even > with pre JSP 2.0/Servlet 2.4), you could just drop it into WEB-INF/ > lib and use the configured URI in the JSP's taglib directive. > Meaning, even pre-JSP 2.0 you could drop jstl.jar into WEB-INF/lib > and specify > <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> > in the JSP.
So then I can completely remove the <taglib> tag from my web.xml file, making it look like the following? <?xml version="1.0"?> <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 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"; version="2.4"> <servlet> [...] </servlet> <servlet-mapping> [...] </servlet-mapping> <welcome-file-list> [...] </welcome-file-list> </web-app> There's nothing else I have to configure to use JSTL? Regards, Anthony Frasso --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]