velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carsten Heyl <...@pixelboxx.de>
Subject Re: Just a small issue...
Date Fri, 04 Jun 2004 07:10:05 GMT
Vijay Bala wrote:

>
>Well my issue is I do need to have the "getter" to be
>named as "getFirstName()" instead of getfirstName.
>Please explain me how to achive getting the first
>letter Capital on the method name.(like
>get(F)irstName)
>
Remember, a String is a String is a java.lang.String ...


#set ($first = "$s.charAt(0)") $first.toUpperCase()$s.substring(1)

and BTW: s is a String.

>
>
>Thanks in advance.
>-Vijay
>
>  
>

Ciao,
    Carsten

-- 
  Carsten Heyl				
  Pixelboxx GmbH			http://www.pixelboxx.de/



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


Mime
View raw message