Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

<tlib-version> confusion

843838Dec 5 2006 — edited Dec 5 2006
Hi,
I have just shifted to JSTL 1.1. I also changed to Servlet spec 2.4, JSP 2.0. I was getting some runtime exception for JSTL, I changed the uri to http://java.sun.com/jstl/core for c.tld and could overcome this error. In all my other jsps I changed from :
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_2.dtd">
to
<taglib 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-jsptaglibrary_2_0.xsd"
    version="2.0">
I did this change for all my own tlds as well. But there is this tag,
 <tlib-version>1.2</tlib-version>
  <jsp-version>1.2</jsp-version>
What does the tlib-version mean. Is this my tlds version. Or the jstl version I am using. if it is jstl version then it shld be 1.1 for all of files. But even when the jstl was 1.0, my tlds already had 1.2.. I think this is my tlds version. I am a little confused though.
ANd what does the jsp-version means, shld it be 2.0 in my case then. I know, for JSP 2.0 I shld delete the jsp-version, it is not needed.
Can anyone plz explain.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 2 2007
Added on Dec 5 2006
1 comment
379 views