Note that there are some explanatory texts on larger screens.

plurals
  1. POjstl and eclipse: maybe EL issue
    primarykey
    data
    text
    <p>I'm using tomcat 7.0.26 and indigo eclipse.</p> <p>I put the jstl jars in my webapp <code>WEB-INF/lib</code> how it's explained <a href="https://stackoverflow.com/tags/jstl/info">here</a>. I put jstl-api-1.2.jar and jstl-impl-1.2.jar.</p> <p>In my webapp <code>web.xml</code>, I have:</p> <pre><code>&lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0"&gt; </code></pre> <p>In my .jsp file, I have</p> <pre><code>&lt;%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %&gt; &lt;%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %&gt; </code></pre> <p>I have some warnings in my .jsp file on:</p> <pre><code> &lt;form&gt; &lt;select id="language" name="language" onchange="submit()"&gt; &lt;option value="en" ${language == 'en' ? 'selected' : ''}&gt;English&lt;/option&gt; &lt;option value="it" ${language == 'it' ? 'selected' : ''}&gt;Italian&lt;/option&gt; &lt;/select&gt; &lt;/form&gt; </code></pre> <p>Precisely:</p> <pre><code>Multiple annotations found at this line: - Invalid location of text (''}) in tag (&lt;option&gt;). - Invalid location of text (') in tag (&lt;option&gt;). - Undefined attribute name (en). - Undefined attribute name (language). - Invalid location of text (${) in tag (&lt;option&gt;). - Undefined attribute name (:). - Invalid location of text (' ? ') in tag (&lt;option&gt;). </code></pre> <p>In "Console", this warning appears:</p> <pre><code>At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. </code></pre> <p>My simple app doen't succeed in displaying the right labels according to the user language.</p> <p>Could the option-tag/EL warning depend on jstl file jars? </p>
    singulars
    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.
    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