You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Shashikanth Duchetty <sa...@gmail.com> on 2006/02/05 16:35:23 UTC

can anybody help me on this please

Hi all,
can I keep such property in properties file

some.one.like=somexyz
thanks
Shashi

Re: can anybody help me on this please

Posted by Shashikanth Duchetty <sa...@gmail.com>.
Hi Sreeni,            Please find code as attachment....
Shashi


On 2/9/06, Sreeni Gali <sr...@gmail.com> wrote:
>
> post me the code how you are reading properties from property file.
>
> On 2/6/06, Shashikanth Duchetty <sa...@gmail.com> wrote:
> >
> > but it doesn't work. If I remove "." in between them it works fine
> > thanks
> > Shashi
> >
> >
> > On 2/7/06, Sreeni Gali <sr...@gmail.com> wrote:
> > >
> > > Yeah definitly you can do this.
> > >
> > > On 2/5/06, Shashikanth Duchetty <sa...@gmail.com> wrote:
> > > >
> > > > Hi all,
> > > > can I keep such property in properties file
> > > >
> > > > some.one.like=somexyz
> > > > thanks
> > > > Shashi
> > > >
> > > >
> > >
> > >
> >
> >
>
>

Re: can anybody help me on this please

Posted by Sreeni Gali <sr...@gmail.com>.
post me the code how you are reading properties from property file.

On 2/6/06, Shashikanth Duchetty <sa...@gmail.com> wrote:
>
> but it doesn't work. If I remove "." in between them it works fine
> thanks
> Shashi
>
>
> On 2/7/06, Sreeni Gali <sr...@gmail.com> wrote:
> >
> > Yeah definitly you can do this.
> >
> > On 2/5/06, Shashikanth Duchetty <sa...@gmail.com> wrote:
> > >
> > > Hi all,
> > > can I keep such property in properties file
> > >
> > > some.one.like=somexyz
> > > thanks
> > > Shashi
> > >
> > >
> >
> >
>
>

Re: can anybody help me on this please

Posted by Nathan Bubna <nb...@gmail.com>.
if you are using the latest (1.2) release of VelocityTools, then
$text.label.one should work just fine.  see
http://jakarta.apache.org/velocity/tools/struts/MessageTool.html#get()

On 2/6/06, Magnus Kvalheim <bm...@inaphone.com> wrote:
> Are you using VelocityStruts(Velocity-tools)?
> Because I experienced the same problems there.
>
> Accessing
> label.one=foobar
> as
> $text.label.one
> didn't work, so I had to use
> $text.get('label.one')
>
> However, properties without dots work fine in velocitystruts
> label_one=foobar
> $text.label_one
>
> Can anyone confirm this issue?
>
> best
> Magnus
>
> Shashikanth Duchetty wrote:
>
> >but it doesn't work. If I remove "." in between them it works fine
> >thanks
> >Shashi
> >
> >
> >On 2/7/06, Sreeni Gali <sr...@gmail.com> wrote:
> >
> >
> >>Yeah definitly you can do this.
> >>
> >>On 2/5/06, Shashikanth Duchetty <sa...@gmail.com> wrote:
> >>
> >>
> >>>Hi all,
> >>>can I keep such property in properties file
> >>>
> >>>some.one.like=somexyz
> >>>thanks
> >>>Shashi
> >>>
> >>>
> >>>
> >>>
> >>
> >>
> >
> >
> >
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Re: can anybody help me on this please

Posted by Magnus Kvalheim <bm...@inaphone.com>.
Are you using VelocityStruts(Velocity-tools)?
Because I experienced the same problems there.

Accessing
label.one=foobar
as
$text.label.one
didn't work, so I had to use
$text.get('label.one')

However, properties without dots work fine in velocitystruts
label_one=foobar
$text.label_one

Can anyone confirm this issue?

best
Magnus

Shashikanth Duchetty wrote:

>but it doesn't work. If I remove "." in between them it works fine
>thanks
>Shashi
>
>
>On 2/7/06, Sreeni Gali <sr...@gmail.com> wrote:
>  
>
>>Yeah definitly you can do this.
>>
>>On 2/5/06, Shashikanth Duchetty <sa...@gmail.com> wrote:
>>    
>>
>>>Hi all,
>>>can I keep such property in properties file
>>>
>>>some.one.like=somexyz
>>>thanks
>>>Shashi
>>>
>>>
>>>      
>>>
>>    
>>
>
>  
>

Re: can anybody help me on this please

Posted by Shashikanth Duchetty <sa...@gmail.com>.
but it doesn't work. If I remove "." in between them it works fine
thanks
Shashi


On 2/7/06, Sreeni Gali <sr...@gmail.com> wrote:
>
> Yeah definitly you can do this.
>
> On 2/5/06, Shashikanth Duchetty <sa...@gmail.com> wrote:
> >
> > Hi all,
> > can I keep such property in properties file
> >
> > some.one.like=somexyz
> > thanks
> > Shashi
> >
> >
>
>

Re: can anybody help me on this please

Posted by Sreeni Gali <sr...@gmail.com>.
Yeah definitly you can do this.

On 2/5/06, Shashikanth Duchetty <sa...@gmail.com> wrote:
>
> Hi all,
> can I keep such property in properties file
>
> some.one.like=somexyz
> thanks
> Shashi
>
>