Thanks for ur reply..it  helps me a lot in my development..

>>> [EMAIL PROTECTED] 06/22/05 9:10 PM >>>
You're definitely right...

On Wed, 2005-06-22 at 08:17 -0700, Llewellyn Falco wrote:
> um, or you could do nothing, and simply use java's string.split
> 
> #foreach($number in $roleids.split(","))
> $number
> #end
> 
> 
> llewellyn.
> ----- Original Message ----- 
> From: "Claude Brisson" <[EMAIL PROTECTED]>
> To: "Velocity Developers List" <[email protected]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Wednesday, June 22, 2005 4:33 AM
> Subject: Re: Help me - how to split the variable value in velocity
> 
> 
> > This is a user-list question, next time use the velocity-users
list
> > please.
> >
> > You can put an instance of org.apache.commons.lang.StringUtils in
your
> > context and use the split method :
> >
> >
http://jakarta.apache.org/commons/lang/api/org/apache/commons/lang/StringUtils.html#split(java.lang.String,%20java.lang.String)
> >
> > --
> > Claude
> >
> > On Wed, 2005-06-22 at 05:16 -0600, Veerappan Sridhar wrote:
> >> Hi,
> >>  Pls help me how to retrieve a set of values from velocity.
> >> Example:
> >> str="1,2,3,4,5"
> >> from str i want to retrieve the value 1 2 3 4 5 , the values only
not
> >> the commas.
> >> i have used substring :
> >> #set ($val4 = $roleids.substring(6,7))
> >> val4: <b>$val4</b>
> >> but the str value will be dynamic, so i cant directly know how
many
> >> characters are there..like
> >> sometime it may be
> >> str="1,2,3,4,5"
> >> or
> >> str="1,2,3,4,5,6,7"
> >> or
> >> str="1,2,3,4,5,6,7,8,9"
> >> like this.
> >> so how to make it general .
> >>
> >> Thanks in Advance
> >> pls provide ur input
> >>
> >>
> >>
> >> >>> [EMAIL PROTECTED] 06/22/05 3:38 PM >>>
> >> ok, so we have a few velocity tools that make life very nice, i
would
> >> like
> >> to add these in.
> >>
> >> ContextAware
> >> this is a simple interface that allows you to merge and cascade
> >> controllers.
> >>
> >> VelocityParser
> >> with contextAware this allows for nice simple calls to merge
templates
> >> in
> >> different forms, with common context tools.
> >>
> >> then we have changes to the uberspect, which i believe should by
> >> default be
> >> loaded in the dev core.
> >> TestableUberspect - throws an exception when you try to call a
context
> >> or
> >> method that does not exist.
> >> at least 99% of the time, if you call a method that does not
exist, it
> >> is a
> >> typo. this makes it very noticeable. of course this shouldn't go
to the
> >>
> >> deployment default, as it's best to fail silently if errors make
it to
> >> that
> >> side.
> >>
> >> Error messages tend to be incorrectly formed here.
> >>
> >> ....
> >>
> >>
> >> Personally, i like velocity. Even gave a talk on it at my local
JUG,
> >> but if
> >> it is too grow then you will need developers to join and
contribute.
> >> Here
> >> you have one, who's just asking for a hand getting started...
> >>
> >>         Llewellyn.
> >>
> >> ----- Original Message ----- 
> >> From: "Daniel Rall" <[email protected]>
> >> To: "Velocity Developers List" <[email protected]>
> >> Sent: Tuesday, June 14, 2005 10:41 AM
> >> Subject: Re: pairing help with some velocity additions
> >>
> >>
> >> > Llewellyn, you'll be more likely to get a response to this if
you
> >> > describe the type of changes you're interested in seeing to
> >> Velocity,
> >> > and strike up a design discussion.  The regression test is a
nice
> >> touch,
> >> > though.
> >> >
> >> > On Wed, 2005-05-11 at 21:08 -0700, Llewellyn Falco wrote:
> >> >>Hey there,
> >> >>
> >> >>    I have a few things I'd like to add to Velocity,
> >> >>
> >> >>    but having never done any code additions don't really have
the
> >> time
> >> >>to do it all right now, i do have a unit test prewritten to test
the
> >> >>things i want. and if someone wouldn't mind pairing with me for
> >> about
> >> >>an hour and a half, i'm sure we could get everything done and
> >> committed
> >> >>so others could have the benefits of the labor.
> >> >>
> >> >>    so anyone game?
> >> >>    if your in san diego, we can do it in person, otherwise vnc
and
> >> >>skype works great.
> >> >>
> >> >>    I'll attach the unit test.
> >> >>
> >> >>
> >> >>    Llewellyn Falco
> >>
>>---------------------------------------------------------------------
> >> >>To unsubscribe, e-mail:
[EMAIL PROTECTED] 
> >> >>For additional commands, e-mail:
[EMAIL PROTECTED] 
> >>
> >> >
> >> >
> >> >
> >>
---------------------------------------------------------------------
> >> > To unsubscribe, e-mail:
[EMAIL PROTECTED] 
> >> > For additional commands, e-mail:
[EMAIL PROTECTED] 
> >>
> >>
> >>
> >>
---------------------------------------------------------------------
> >> To unsubscribe, e-mail:
[EMAIL PROTECTED] 
> >> For additional commands, e-mail:
[EMAIL PROTECTED] 
> >>
> >>
> >>
---------------------------------------------------------------------
> >> To unsubscribe, e-mail:
[EMAIL PROTECTED] 
> >> For additional commands, e-mail:
[EMAIL PROTECTED] 
> >>
> > -- 
> 
-- 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to