• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

using jstl with struts

 
Dave Mere
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there. I'm trying to use the jstl core taglib along with struts to give me greater control-of-flow, but the app doesn't seem to want to load the tld file. I can't figure out what this is . . . can anyone help?

Heres the code -
web.xml:


jsp:


and heres the error messgae from tomcat log!
 
Ed Chawlik
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a jar file that goes along with this?
 
Stefan Evans
Bartender
Posts: 1780
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You shouldn't need any changes to web.xml, or any tld files in your directory.
All you need are the files "standard.jar" and "jstl.jar" in your web-inf/lib directory.

And then if you have
Servlet2.3/JSP1.2 = JSTL1.0 = <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%> (eg Tomcat 4)
Servlet2.4/JSP2.0 = JSTL1.1 = <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> (eg Tomcat 5)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic