This week's book giveaway is in the Agile forum.
We're giving away four copies of Head First Agile and have Andrew Stellman & Jennifer Greene on-line!
See this thread for details.
Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

difference between JSTL taglib "core_rt" and "core"  RSS feed

 
Eric L Zhao
Greenhorn
Posts: 6
Java Linux Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

What are the difference between <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %> and the one without "rt"? Sometimes when I remove "rt" the JSP won't compile, what is the reason?

Thanks,
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66208
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unless you are using a very old version of JSP (JSP 1.2 or 1.1 to be exact) you shouldn't be using either of those. Those are JSTL 1.0 URIs and are not suited to modern versions of JSP.

Check the JSP FAQ which describes how to correctly set up the JSTL.

But to answer your questions, the two libraries differed in that one would allow run-time expressions as tag attribute values, and one wouldn't. In modern JSP and JSTL, where the JSP engine does all expression evaluation, it's no longer relevant.
 
Eric L Zhao
Greenhorn
Posts: 6
Java Linux Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply! by using JSTL 1.2 it works!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!