File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes JSTL Bug ???? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "JSTL Bug ????" Watch "JSTL Bug ????" New topic
Author

JSTL Bug ????

Juarez Alvares Barbosa Junior
Ranch Hand

Joined: Mar 18, 2002
Posts: 80
Hello There,
I am using JSTL and I have found an interesting behavior.
I have a bean with the following field and get/set methods:
public class PlcWebApp implements Serializable
{
...
private Hashtable tagLibs; //L is UPPER CASE
...
}
When using the following, the prop is NOT FOUND (prop case is the same but something wrong happens...)
<c:forEach items="${SingletonAppCache.plcWebApp.tagLibs}" var="tagLib">
<c ut value="${tagLib.value.taglibLocation}" default="Empty"/>
-
<c ut value="${tagLib.value.taglibUri}" default="Empty"/><br>
</c:forEach>
I need to use taglibs instead of tagLibs in order to work (as below):
<c:forEach items="${SingletonAppCache.plcWebApp.taglibs}" var="tagLib">
It worked for this prop but using lower case for other props is not working.
I need some help because I have persuaded my boss to use JSTL instead of Struts tags (as per Struts page advice) and now it is not working.
Could anybody clear things out, please ?
Thanks a lot,
Juarez Junior
Juarez Alvares Barbosa Junior
Ranch Hand

Joined: Mar 18, 2002
Posts: 80
Hi,
Here's the exception message...
org.apache.jasper.JasperException: An error occurred while evaluating custom action attribute "items" with value "${SingletonAppCache.plcWebApp.tagLibs}": Unable to find a value for "tagLibs" in object of class "com.powerlogic.jcompany.jdoc.web.PlcWebApp" using operator "." (null)
Juarez Alvares Barbosa Junior
Ranch Hand

Joined: Mar 18, 2002
Posts: 80
Hello,
Just wanted to warn that I already found the problem...the getter was wrong...thanks anyway !!
Juarez
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: JSTL Bug ????