Note that there are some explanatory texts on larger screens.

plurals
  1. POJSTL taglib URI is obsolete?
    primarykey
    data
    text
    <p>I've been checking out Spring MVC tutorial and copied this small JSP code from there:</p> <pre><code>&lt;%@ page session="false"%&gt; &lt;%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %&gt; &lt;html&gt; &lt;head&gt;&lt;title&gt;Training, Inc.&lt;/title&gt;&lt;/head&gt; &lt;body&gt; &lt;h2&gt;&lt;c:out value="${message}" /&gt;&lt;/h2&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>There is a string set for message and the c:out tag just prints literally</p> <p><strong>${message}</strong></p> <p>I was hitting my head for a while until I remembered an issue I had before and changed the taglib URI to:</p> <pre><code>&lt;%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %&gt; </code></pre> <p>This solved my little problem</p> <p>Some time ago I had a similar issue with XSLT transforming but in that case I had to change from <strong><a href="http://java.sun.com/jstl/xml" rel="noreferrer">http://java.sun.com/jstl/xml</a></strong> to <strong><a href="http://java.sun.com/jsp/jstl/xml" rel="noreferrer">http://java.sun.com/jsp/jstl/xml</a></strong></p> <p>According with this <a href="http://faq.javaranch.com/view?JstlTagLibDefinitions" rel="noreferrer">link</a> my spring example should've worked just as I pasted from spring tutorial</p> <p>The question is: Any of you guys know where is all this taglib URI confusion documented? Why in the some cases I got the last version from <a href="http://java.sun.com/jsp/jstl" rel="noreferrer">http://java.sun.com/jsp/jstl</a> and in other ones I got the last version from <a href="http://java.sun.com/jstl" rel="noreferrer">http://java.sun.com/jstl</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload