RE: Re: Problem getting value from Map.

2006-10-06 Thread Daryl Beattie
ailto:[EMAIL PROTECTED] Sent: Friday, October 06, 2006 4:21 PM To: velocity-user@jakarta.apache.org Subject: Re: Problem getting value from Map. "Daryl Beattie" <[EMAIL PROTECTED]> writes: >class DataHolder extends HashMap { > public Value getA() { >return this.get(n

Re: Problem getting value from Map.

2006-10-06 Thread Henning P. Schmiedehausen
"Daryl Beattie" <[EMAIL PROTECTED]> writes: >class DataHolder extends HashMap { > public Value getA() { >return this.get(new Name("a")); //$NON-NLS-1$ > } > @Override > public Value get(Object key) { >return super.get(new Name(key.toString())); > } >} Quick question: Shouldn't that

RE: Problem getting value from Map.

2006-10-06 Thread Daryl Beattie
. -Original Message- From: Barbara Baughman [mailto:[EMAIL PROTECTED] Sent: Friday, October 06, 2006 3:07 PM To: Velocity Users List Subject: RE: Problem getting value from Map. My guess is because "a" is translated by Velocity as a String, not a Name object. Barbara Baughman X21

RE: Problem getting value from Map.

2006-10-06 Thread Barbara Baughman
> > > -Original Message- > From: Matthias Hendler [mailto:[EMAIL PROTECTED] > Sent: Friday, October 06, 2006 11:15 AM > To: Velocity Users List > Subject: Re: Problem getting value from Map. > > Hello Daryl, > > well, your class is package private and it must

RE: Problem getting value from Map.

2006-10-06 Thread Daryl Beattie
Daryl. -Original Message- From: Matthias Hendler [mailto:[EMAIL PROTECTED] Sent: Friday, October 06, 2006 11:15 AM To: Velocity Users List Subject: Re: Problem getting value from Map. Hello Daryl, well, your class is package private and it must be of public type. You added a packa

Re: Problem getting value from Map.

2006-10-06 Thread Nathan Bubna
your class must be declared as "public" On 10/6/06, Daryl Beattie <[EMAIL PROTECTED]> wrote: Hi Velocity people, Okay, first off; I tried searching for answers to this, but the mailing list archive is not searchable (in any way that I could find), so if this question is a faq, ple

Re: Problem getting value from Map.

2006-10-06 Thread Matthias Hendler
-Nachricht Datum: Fri, 6 Oct 2006 10:40:17 -0400 Von: "Daryl Beattie" <[EMAIL PROTECTED]> An: velocity-user@jakarta.apache.org Betreff: Problem getting value from Map. > Hi Velocity people, > > > > Okay, first off; I tried searching for answers to th

Problem getting value from Map.

2006-10-06 Thread Daryl Beattie
Hi Velocity people, Okay, first off; I tried searching for answers to this, but the mailing list archive is not searchable (in any way that I could find), so if this question is a faq, please don't be upset. I am having trouble getting a value out of a Map. Every time I