Forums Register Login

EL Variable (like, for example: ${test}) is not evaluated

+Pie Number of slices to send: Send
Hello,

I have the following custom tag



I call this tag like follows:


However, for some reason EL variables ${test}, ${path} and ${label} are not evaluated. They print out as ${test}, ${path}, and ${label}

I would like for them to be evaluated to their respective values. How do I achieve this?

p.s. This same code was working fine in a previous application I used it in. Also, I am using Tomcat 5.5 and JSTL 1.1
+Pie Number of slices to send: Send
Have you read through the JSP FAQ entries on this issue? Is your web app properly declared in web.xml?
+Pie Number of slices to send: Send
Thanks Bear Bibeault. Your post guided me to the information that I needed.

Read http://faq.javaranch.com/java/ElOrJstlNotWorkingAsExpected which lead me to change
To:
<code>
<web-app version="2.4"
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-app_2_4.xsd" >
</code>
From
<code>
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5">
</code>
in WEB-INF/web.xml
Thanks again
+Pie Number of slices to send: Send
That's what the FAQs are for! Glad they helped.
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 2101 times.
Similar Threads
Implementation of google charts in JSP
Best choice for pagination?
html:link and form
problem with tiles
JSTL : not working with JSP 2.0
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 05:44:00.