Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Struts, JSTL "ELException: Unable to find a value for..."

Thread Tools

Struts, JSTL "ELException: Unable to find a value for..."
Posts: n/a
I have a JSP/Struts site that currently works. I code it with a regular
text editor. I compile it through an ant script. The site has a web.xml
that begins like:

<?xml version="1.0" encoding="ISO-8859-1"?>
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"

I want to be able to create a standard web project in Eclipse or
NetBeans, compile it through the IDE facilities (including compiling
the JSP files) and run/debug it through the IDE. My attempt is failing
because of some JSTL versioning problems.

The IDEs want my web.xml to begin with:

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns=""

I have a web page with this include:

<%@ taglib uri="" prefix="c" %>

and I use constructs:

<cut value="${myform.myfield}"/>
<c:forEach items="${myform.mylist}" var="listitems" ...>
<c:when test="${listitems.somestatus eq 'OPEN'}">

When I just change the web.xml file to the "version 2.4" style the
compiler complains that my JSP page can't be compiled because the cut
value construct won't accept a EL expression. So I change to a
different c.tld, changing around the taglib for that and end up with
the error "ELException: Unable to find a value for "somestatus" in
object of class "java.lang.String" using operator "."

(Actually, I've simplified my problem-creating sequence a bit, but this
is the flavor...).

I've seen a bit of advice to do this and that, without real coherence
in the advice or results. I *do* know that the version that works
compiles the JSP file into a Java file with this construct:

_jspx_th_c_when_1.setTest("${listitems.somestatus eq 'OPEN'}");

whereas the configurations that *do not* work compile the JSP file into
a Java file with this construct:
proprietaryEvaluate("${listitems.somestatus eq 'OPEN'}",
null, false)).booleanValue());

yields the ELException result.

I believe that I am mixing several versions of TLD, web.xml
architectures and jar files. Can I get instructions on what jars to
put where, which TLDs to have, and to have defined in my web.xml file
and JSP pages?

Thanks in advance,

Jerome Mrozak

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
(struts/JSTL) Setting bean property value with jstl choose compoundresults DaFoot Java 1 10-23-2008 12:42 PM
JSTL version Tomcat vs Resin - Unable to find setter method - set(Object) Java 2 11-14-2006 11:42 AM
Unable to see machines on the ethernet; Unable to find printers =?Utf-8?B?Sm9obiBN?= Wireless Networking 1 06-07-2005 03:32 AM
Custom JSTL that accepts JSTL expression Robert Mark Bram Java 0 12-15-2004 12:26 AM
Unable to load class using jstl on Tomcat David Zeidman Java 1 08-07-2003 03:39 AM