L
luke
Struts 1.27, Tomcat 5.5.9, Taglib 1.1
I spent 3 full days on this stuff. The solution for me seems to be
1) Make sure you have the latest jakarta taglib. include standard.jar
and jstl.jar in your app's web-inf/lib
2) MAKE SURE YOU HAVE THE LATEST xercesImpl.jar AND NOT xerces.jar (My
problem!)
3) Change app web.xml to use web-app_2_4.xsd (serlvet 2,4 and jsp 2.0)
eg:
<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">
4) No longer need <taglib> in web.xml. I think it is no longer support
and read somewhere that you can include it with a <jsp-config>. all
*.tld are in their support jars
5) change jsp to use... (YES, WITH THE /jsp/jstl !!!)
eg:
<%@ taglib prefix="html" uri="http://struts.apache.org/tags-html" %>
<%@ taglib prefix="bean" uri="http://struts.apache.org/tags-bean" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
Worst case email me at (e-mail address removed)
I spent 3 full days on this stuff. The solution for me seems to be
1) Make sure you have the latest jakarta taglib. include standard.jar
and jstl.jar in your app's web-inf/lib
2) MAKE SURE YOU HAVE THE LATEST xercesImpl.jar AND NOT xerces.jar (My
problem!)
3) Change app web.xml to use web-app_2_4.xsd (serlvet 2,4 and jsp 2.0)
eg:
<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">
4) No longer need <taglib> in web.xml. I think it is no longer support
and read somewhere that you can include it with a <jsp-config>. all
*.tld are in their support jars
5) change jsp to use... (YES, WITH THE /jsp/jstl !!!)
eg:
<%@ taglib prefix="html" uri="http://struts.apache.org/tags-html" %>
<%@ taglib prefix="bean" uri="http://struts.apache.org/tags-bean" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
Worst case email me at (e-mail address removed)