• Post Reply Bookmark Topic Watch Topic
  • New Topic

No JSTL support under Tomcat 6.0>

 
Klaas van Gelder
Ranch Hand
Posts: 111
Java Linux PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I try to make my webapp running under Tomcat 6.0 but there appears to be no support for jstl. There are many threads about this subject but none of them offering a working solution.
In Eclipse it is already shown that the tablib is not found: "Can not find the tag library descriptor for http://java .sun.com/jsp/jstl/core"

And after deploying the WAR file in Tomcat, when the jsp is compiled Tomcat says:
JasperException: The abslute URI "http://java .sun.com/jsp/jstl/core"
" cannot be resolved in either web.xml or the jar files deployed with this application

So what goes wrong here? Does Tomcat not deliver the right JAR file to enable jstl support? I think this is part of the J2EE Web specification so it should work.
Is there maybe some extra JAR file I should include in my project? There are some download links which do not work anymore... But I tnk I should not need to turn to some obscure site to use such a basic functionality!
I hope for a hint
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65522
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Prior to JSP 2.0 you must use JSTL 1.0.

Tomcat supports whatever version of the JSTL you include via the jar files.
 
Klaas van Gelder
Ranch Hand
Posts: 111
Java Linux PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK so I need separate jarfiles to make taglibs working? Can these be placed in the Tomcat lib directory or should they be part of the web application?
And what is the right place to get those jarfiles?
 
Klaas van Gelder
Ranch Hand
Posts: 111
Java Linux PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found and downloaded jstl-2.1.jar and placed in in the Tomcat lib directory. My web app runs fine now with the taglibs.
But I still find it a bit strange that this is necessary...
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65522
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Klaas van Gelder wrote:OK so I need separate jarfiles to make taglibs working?

No, you need the JSTL jar file to make the JSTL work.
 
Klaas van Gelder
Ranch Hand
Posts: 111
Java Linux PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK I have found and downloaded the jarfile and it works now. But I find it pretty strange that this does not work by default using Tomcat...
Thanks for your reactions.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!