tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick Ross" <rr...@stupendousman.com>
Subject Unable to find value using operator "." (null)
Date Sat, 23 Aug 2003 07:24:41 GMT
I have a class called RTime. It has the following get methods (and no SET
methods):

    public String getCrazy()
    public String getUSTime()
    public String getISOTime()

 One of my custom tags places an object of this type into the pageContext.
The US and ISO time methods work perfectly, but the Crazy method fails to
compile

    <stup:makeTime var="timeOb" time="${param.time}" />
    <c:out value="${timeOb.ISOTime}" />
    <c:out value="${timeOb.USTime}" />
    <c:out value="${timeOb.Crazy}" />

Here is the error message:

    An error occurred while evaluating custom action attribute "value" with
value
    "${timeOb.Crazy}": Unable to find a value for "Crazy" in object of class
    "stupendous.tags.datetime.RTime" using operator "." (null)

Now, also on the page, I iterate through all of the contexts in page (page,
application, etc.) and spit out the results.  As long as I comment out the
'Crazy' call, I can clearly see that I have a stupendous.tags.datetime.RTime
object.  (of course, if I didn't, I would get nothing back from the ISO and
US time functions.  But I do.  I get exactly what I expect from each of
them.

I've renamed the method a dozen times.  Added a matching setter method,
renamed the class, added and removed other get methods ... nothing changes
the fact that it, and new methods, will not work..  of course, if I replace
the last c:out with:

 <%
      stupendous.tags.datetime.RTime t =
(stupendous.tags.datetime.RTime)pageContext.getAttribute("timeOb");
      pageContext.getOut().println(t.getCrazy());
  %>

It works perfectly.

Any thoughts?

Rick



Mime
View raw message