use this -

my name is: $!o.foo()

rgds,
- Manish

----- Original Message ----- From: "bluejoe" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, September 11, 2008 12:09 PM
Subject: question on Velocity: How to let Velocity keep silent when some exceptions occur?


Hi, I am a user of Velocity, now I have a question: How to let Velocity keep silent when some exceptions occur?

 For example, I wrote codes:

   my name is: $o.foo()

In some cases, foo() may throw some exceptions, like NullException, etc. It seems that Velocity will throw these exceptions too. But I want Velocity to regard the statement as:

   my name is: <empty>

 Is there any way to let Velocity ignore the errors?

Sincerely Yours,
bluejoe
2008-9-11



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

Reply via email to