Comparing null...

2005-03-30 Thread Majji, Sashibhushan
Hi All, Can we compare null condition in velocity # if ($type != null) #end Thanks Sashi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Writing to File

2005-04-05 Thread Majji, Sashibhushan
Hi All, I am writing some data to file using Templet.. fileName = C:/cs_db.xml; BufferedWriter writer = new BufferedWriter( new FileWriter(fileName)); if ( template != null)

ADD Function in Velocity

2005-04-13 Thread Majji, Sashibhushan
Hi All, I am trying to use add functionality with external data #set ( $value = $templet.getLongValue() ) suppose now $value has value of 1 #set ( $value = $value + 1 ) Still the total shows 1. Actually its not adding value . Here $templet.getLongValue() returns a long

ADD Function in Velocity

2005-04-13 Thread Majji, Sashibhushan
Hi All, I am trying to use add functionality with external data #set ( $value = $templet.getLongValue() ) suppose now $value has value of 1 #set ( $value = $value + 1 ) Still the total shows 1. Actually its not adding value . Here $templet.getLongValue() returns a long

Writing to File

2005-04-19 Thread Majji, Sashibhushan
Hi All, I am creating a XML file using template. I am able to write the file record by record but the requirement is to write all the records one after one with giving new line example code $template.getStrValue($header) #set( $count = $count + 1 ) $count ...