[prev in list] [next in list] [prev in thread] [next in thread]
List: velocity-user
Subject: Re: Few questions about Velocity
From: "bharat chintapally" <hydbad () hotmail ! com>
Date: 2001-10-31 14:14:05
[Download RAW message or body]
Thanks for your response.. I am using Velocity-1.2-rc1. I couldn't access
the public variables of a java object while evaluating a template unless I
had a getter..
One more question: I could'nt see any reference to LOGICAL NOT (!)
operation. I would like to compare two string values.. Is that available? If
it is not available I suppose I could use the #else part of if/else
conditional.
Thanks
--bharat
>From: "Geir Magnusson Jr." <geirm@optonline.net>
>Reply-To: velocity-user@jakarta.apache.org
>To: velocity-user@jakarta.apache.org
>Subject: Re: Few questions about Velocity
>Date: Tue, 23 Oct 2001 18:50:03 -0400
>
>On 10/23/01 5:01 PM, "Bojan Smojver" <bojan@binarix.com> wrote:
>
> > bharat chintapally wrote:
> >>
> >> Hi folks:
> >> I am a novice here, just started using Velocity for some
>template
> >> processing. I have few queastons.
> >>
> >> 1. Are logical AND and OR part of VTL yet??.
> >
> > Yes.
> >
> >> 2. If I want put a java object (a bean) in Velocity context, should
>the
> >> bean comply with any interface, or is it any java object with valid
>getters
> >> and setters.
> >
> > Any will do.
>
>It's better than that. Not only can you use 'beans', but we will let you
>work with all public methods of an object, not just valid getters and
>setters.
>
>This is a valuable distinction from 'just beans'.
>
>geir
>
>--
>Geir Magnusson Jr. geirm@optonline.net
>System and Software Consulting
>"Whoever would overthrow the liberty of a nation must begin by subduing the
>freeness of speech." - Benjamin Franklin
>
>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
--
To unsubscribe, e-mail: <mailto:velocity-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:velocity-user-help@jakarta.apache.org>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic