This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes using jstl with struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "using jstl with struts" Watch "using jstl with struts" New topic

using jstl with struts

Dave Mere
Ranch Hand

Joined: Oct 25, 2004
Posts: 37
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 -


and heres the error messgae from tomcat log!
Ed Chawlik

Joined: Aug 10, 2005
Posts: 16
Is there a jar file that goes along with this?
Stefan Evans

Joined: Jul 06, 2005
Posts: 1018
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=""%> (eg Tomcat 4)
Servlet2.4/JSP2.0 = JSTL1.1 = <%@ taglib prefix="c" uri=""%> (eg Tomcat 5)
It is sorta covered in the JavaRanch Style Guide.
subject: using jstl with struts