velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tarun Narang" <tarun.nar...@secf.com>
Subject Re: Problem with null in velocity template
Date Tue, 22 Mar 2005 06:50:52 GMT
hi barbara

u can use $!project instead of using $project if this variable has a null
value.

Regards
Ktarun

----- Original Message ----- 
From: "Barbara Baughman" <baughman@utdallas.edu>
To: "Velocity Users List" <velocity-user@jakarta.apache.org>
Sent: Saturday, March 19, 2005 12:24 AM
Subject: Re: Problem with null in velocity template


> Read the User's Guide, under Quiet Reference Notation.
>
> Barbara Baughman
> X2157
>
> On Fri, 18 Mar 2005, Madasu, Satya K. wrote:
>
> > Hi,
> >
> > If I have a null value to the variable then the script is displaying as
is
> > with the $ sign on the web page.
> >
> > How to overcome this problem? Please let me know.
> >
> > We are using $project $name to render this.
> >
> > When I passed in null for project and velocity for name then the result
is
> >
> > We are using $project velocity to render this.
> >
> >
> > Thanks!
> >
> > Kiron Madasu
> > McLeodUSA StarQuality Certified
> > Software Development Analyst
> > Phone: 319-790-7591
> > E-mail: smadasu@mcleodusa.com
> > Website: http://www.mcleodusa.com
> >
> >
> >
> >
> >
> >
> > NOTICE: This electronic mail transmission may contain confidential
> > information and is intended only for the person(s) named.  Any use,
copying
> > or disclosure by any other person is strictly prohibited. If you have
> > received this transmission in error, please notify the sender via
e-mail.
> >
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
>
>




---------------------------------------------------------------------
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