Disabling Logging in Velocity

2005-03-28 Thread Gagan 007
Thanx, This group has helped me a lot When ever I run my application which uses Velocity, a file named as Velocity.log gets created. I dont want this to happen, I mean I DONT need logging. is there any way to disable the logging in Velocity? Its urgent , thanx in anticipation

Packaging of velocity

2005-03-28 Thread Gagan 007
Hi I have to distribute my appplication which uses velocity, but i want to make some changes to velocity.properties. So wats the best way to do this 1. To change the velocity.properties and again package it in velocity Jar 2. To change the property at runtime using Velocity.init or

RE: Disabling Logging in Velocity

2005-03-28 Thread Gagan 007
Its not working. any other way would be highly appreciated Thanx Ford, Peter [EMAIL PROTECTED] wrote: The quick dirty fix I use is to set runtime.log=/dev/null in the configuration. --Pete -Original Message- From: Gagan 007 [mailto:[EMAIL PROTECTED] Sent: Monday, March 28

Re: Extra space appearing in the if /else block

2005-03-14 Thread Gagan 007
Thanx Its working perfectly ok . This mailing list has helped me a lot... actually i m bit new to Velocity, but my delivery deadline is very near.. Mike Kienenberger [EMAIL PROTECTED] wrote: Gagan 007 wrote: #if ($obj.isPreviousEmployee())Yes #else

Re: File format contains the fixed size s# with left padded 0, can we do this in Velocity?

2005-03-12 Thread Gagan 007
-0800 (PST), Gagan 007 wrote: I have to show some file in this format S# Value 0001 abc 0002 adc 0003 afc 0004 sbc 0005 fbc 0006 abh 0007 afc 0008 sbc 0009 fbc 0010 hbc 0011 alc 0012 a;c 0013 a'b 0014 ab[ 0015 ayc 0016 a5c 0017 ab4 0018 a3c and so on 0100 abc I have

Same context two merge into diff. Templates, Is this possible in single call to Velocity.evauate?

2005-03-12 Thread Gagan 007
Hi I have populated the VeclocityContext and i have to merge with two templates i need to call Velocity.evaluate twice for that... To improve the performace is there any way so that i m able to do this in one single call - Thanx -

Re: Same context two merge into diff. Templates, Is this possible in single call to Velocity.evauate?

2005-03-12 Thread Gagan 007
separate outputs? If so then there really isn't a useful way to do this any easier. However, if you need to include the two templates into one output then it's easy, just use #parse() - see the manual for how to use it. - simon Gagan 007 wrote: Hi I have populated the VeclocityContext and i have

Re: Same context two merge into diff. Templates, Is this possible in single call to Velocity.evauate?

2005-03-12 Thread Gagan 007
, - simon Gagan 007 wrote: Simon, Thanx for ur reply Let me try again to explain my need 1. I have two different Velocity Templates... 2. The Vecloity variables are same in both the templates. 3. Now i need to call Velocity.evaluate twice, to merge the context with the templates 4

Re: Same context two merge into diff. Templates, Is this possible in single call to Velocity.evauate?

2005-03-12 Thread Gagan 007
, - simon Gagan 007 wrote: Simon, Thanx for ur reply Let me try again to explain my need 1. I have two different Velocity Templates... 2. The Vecloity variables are same in both the templates. 3. Now i need to call Velocity.evaluate twice, to merge the context with the templates 4

Extra space appearing in the if /else block

2005-03-12 Thread Gagan 007
Hi I am using something like this in my template #if ($obj.isPreviousEmployee())Yes #else NO if the value of isPreviousEmployee() is true then it works ok(it displays Yes) if the values of isPreviousEmployee is false then is displays NO (extra space before NO Appears) as there is a space

If the value is null in VelocityContext, the object is displayed same in Template...Can we get blank?

2005-03-11 Thread Gagan 007
HI , I m storing a object in the VelocityContext as context.put(obj, test); in the Template file i m using $obj.getName() if setName is not called on the test object before storing in the context, it display $obj.getName() in the output Is there any way to get blank, if the name is

RE: If the value is null in VelocityContext, the object is displayed same in Template...Can we get blank?

2005-03-11 Thread Gagan 007
Thanx Dimitrios Kolovos Assia Its working Assia Aouat [EMAIL PROTECTED] wrote: I think that if you will use $!obj.getName() with ! -Original Message- From: Gagan 007 [mailto:[EMAIL PROTECTED] Sent: Friday, March 11, 2005 10:35 AM To: velocity-user@jakarta.apache.org Subject

File format contains the fixed size s# with left padded 0, can we do this in Velocity?

2005-03-11 Thread Gagan 007
I have to show some file in this format S# Value 0001 abc 0002 adc 0003 afc 0004 sbc 0005 fbc 0006 abh 0007 afc 0008 sbc 0009 fbc 0010 hbc 0011 alc 0012 a;c 0013 a'b 0014 ab[ 0015 ayc 0016 a5c 0017 ab4 0018 a3c and so on 0100 abc I have all the values in the collection and i m

Language Tranlation Problem

2005-02-10 Thread Gagan 007
HI all, PLease solve this problem I Have some XML file, which contains the template for emails (different xml file for different language). Lets say a Japanese, French and English..XML file with proper encoding... these templates have some velocity variable that would be populated at

Velocity Unicode Characters

2005-02-01 Thread Gagan 007
I am using Velocity in my application, I need multilingual support in the application, does Veloctiy supports Unicode characters?? If not then what other tools do we have? - Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses.