How can I compare 'null' in my velocity template for if condition???
The following results in an error.
#if(null == $p.getDisplayaddressbool()){
}
TIA,
- Manish
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
#set ( $displayAddr = $p.getDisplayaddressbool())
if($displayAddr)
//if displayAddr is not null
#else
//control will come here if displayAddr is null #end
If the above code is inside a for loop, the u'll have to set $displayAddr to
false at the end of the loop.
#set (
Ah thanks!
This should work, but there a global macro somewhere in my code that
replaces all these blank for nulls by NA value.
Now I'll have to figure out whether this test comes first or it is the
macro. Someone else wrote this code and he's leaving
It's fun being a programmer, excitement
Then you'll like this one too:
#set ($mem = 12345678901234567890123456789012345678901234567890)
#foreach ($link in [1..100]) $set ($mem = $mem$mem) #end
This one leads only to an OutOfMem and is easily fixed by overloading
the getIterator of the Uberspector and limiting the number of times a
Hi all,
In case anyone is interested, I made a cool tool that works with null.
As of the moment, there is no documentation except for the tests.
The class:
http://sylow.no-ip.com/pub/apache/jakarta/velocity/tools/NullTool.java
The test:
Hi,
I am evaluating if we can use Velocity for a high traffic site, which during
mon-wed can get around 10 million users.
It would be a hosted solution and for EACH CLINET the site will have its own
customization. The number of client will be around 200 and the combined
user(for all the
Manish said:
Ah thanks!
This should work, but there a global macro somewhere in my code that
replaces all these blank for nulls by NA value.
Now I'll have to figure out whether this test comes first or it is the
macro. Someone else wrote this code and he's leaving
heh. yeah, that's
On Thu, 07 Oct 2004 02:31, titanium metal wrote:
Hi,
I am evaluating if we can use Velocity for a high traffic site, which
during mon-wed can get around 10 million users.
It would be a hosted solution and for EACH CLINET the site will have its
own customization. The number of client will be
Resin used to be faster than Tomcat 3.x, but with TC 5.0? I somehow doubt
it is that much faster anymore, but I haven't seen any numbers lately.
As to the high traffic site. Soon, I'm working on it, 600 million PI/month
enough? OK, it won't solely be velocity based, just to allow the customer
to
not sure what Velocity just isn't compiled code. means.
Do you mean serverside java app isn't compiled code, unlike cgi sites that
use compiled c/c++ ?
velocity itself is as compiled as everything else running in the jvm (class
files are the result of a compilation).
So that leaves the
My experience is that velocity and pure JSP have no real difference in terms
of performance. BUT, if you are using JSP with Taglib, then, velocity will
perform much better than JSP/Taglib. I have found Taglib to be a real drag
for performance, we have to replace Tags with scriptlet in some cases
In my experience, your assumption is wrong. I think I've spilled this to
the list before... I once had a small app that I wrote using exclusive
servlets/velocity. Then I realized I'd created a small app that only *I*
could maintain because no one else knew/loved velocity like I did. I also
Mike wrote in another thread:
needed to start adding graphs to my app, and I went the easy
cewolf/jfreechart route (which requires jsp/taglibs).
Funny -- a colleague brought the CEWOLF package up the other day.
http://cewolf.sourceforge.net/
I'm the resident I luv Velocity geek and so he asked
13 matches
Mail list logo