[stringtemplate-interest] problem with first(attribute) expression when attribute is a list of hashes
matt at thataddress.com
matt at thataddress.com
Fri Dec 14 11:40:00 PST 2007
Hello list (new here),
I have a web page where I stuff a List
of HashMap into a string template, and I want to use one of the members of
the first hash in the list. So I tried:
$first(list_attribute).hash_member$
This resulted in a
NullPointerException in ConditionalExpr.write (line 88).
Then I
tried:
$first(list_attribute):{ $it.hash_member$ }$
This approach resulted in an empty string (and I verified that the
member I want to reference is in fact passed into the template). Is
there some other way to do what I want, that I'm missing? I'm using
StringTemplate 3.1b1.
- Matt Brown
More information about the stringtemplate-interest
mailing list