Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #13061

Re: JSTL: getting a map's keys

From markspace <-@.>
Newsgroups comp.lang.java.programmer
Subject Re: JSTL: getting a map's keys
Date 2012-03-19 15:27 -0700
Organization A noiseless patient Spider
Message-ID <jk8bt4$t1e$1@dont-email.me> (permalink)
References <9spbepF1baU1@mid.individual.net> <2b4fm7t90armrhn9qjn7qi25oqssceja73@4ax.com>

Show all headers | View raw


On 3/19/2012 1:08 PM, Tim Slattery wrote:
> Chris Riesbeck<Chris.Riesbeck@gmail.com>  wrote:
>
>
>>    <p>jstl: ${rates.keys}</p>
>
> The EL here finds the object "rates" and looks for an attribute named
> "keys". That means that if rates doesn't have a public method named
> getKeys, the EL won't find anything.
>


Up before the part you snipped, the OP mentioned that he did sub-class 
HashTable and add a "getKeys()" method.

Hmm, maybe there's a clue there.  Are there coercion rules for JSTL? 
It's been a long while since I looked at it.  Is it possible that JSTL 
is coercing SimTable (the one with getKeys()) to a HashTable, which does 
not have "getKeys()" defined?

You might want to uncompile the .class file for this JSTL, it might show 
you what is actually being produced.  There may be a clue there.

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

JSTL: getting a map's keys Chris Riesbeck <Chris.Riesbeck@gmail.com> - 2012-03-19 13:15 -0500
  Re: JSTL: getting a map's keys Lew <lewbloch@gmail.com> - 2012-03-19 12:57 -0700
  Re: JSTL: getting a map's keys Tim Slattery <Slattery_T@bls.gov> - 2012-03-19 16:08 -0400
    Re: JSTL: getting a map's keys Chris Riesbeck <Chris.Riesbeck@gmail.com> - 2012-03-19 16:06 -0500
      Re: JSTL: getting a map's keys Chris Riesbeck <Chris.Riesbeck@gmail.com> - 2012-03-19 16:39 -0500
    Re: JSTL: getting a map's keys markspace <-@.> - 2012-03-19 15:27 -0700
  Re: JSTL: getting a map's keys Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-03-19 16:59 -0700
    Re: JSTL: getting a map's keys Chris Riesbeck <Chris.Riesbeck@gmail.com> - 2012-03-20 12:19 -0500
      Re: JSTL: getting a map's keys Chris Riesbeck <Chris.Riesbeck@gmail.com> - 2012-03-20 12:52 -0500
        Re: JSTL: getting a map's keys Lew <lewbloch@gmail.com> - 2012-03-20 11:05 -0700
          Re: JSTL: getting a map's keys Chris Riesbeck <Chris.Riesbeck@gmail.com> - 2012-03-21 13:09 -0500
            Re: JSTL: getting a map's keys Lew <noone@lewscanon.com> - 2012-03-22 07:51 -0700
              Re: JSTL: getting a map's keys Chris Riesbeck <Chris.Riesbeck@gmail.com> - 2012-03-22 12:53 -0500
                Re: JSTL: getting a map's keys Lew <lewbloch@gmail.com> - 2012-03-22 13:23 -0700
                Re: JSTL: getting a map's keys Chris Riesbeck <Chris.Riesbeck@gmail.com> - 2012-03-23 12:23 -0500
                Re: JSTL: getting a map's keys Lew <noone@lewscanon.com> - 2012-03-23 13:50 -0700
                Re: JSTL: getting a map's keys Chris Riesbeck <Chris.Riesbeck@gmail.com> - 2012-03-26 14:10 -0500
        Re: JSTL: getting a map's keys Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-03-20 11:28 -0700
        Re: JSTL: getting a map's keys markspace <-@.> - 2012-03-20 11:29 -0700
          Re: JSTL: getting a map's keys Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-03-20 12:10 -0700

csiph-web