dev@jsftemplating.java.net

How to use 'if'

From: Anissa Lam <Anissa.Lam_at_Sun.COM>
Date: Mon, 04 Sep 2006 14:44:52 -0700

Hi Ken,

I want to know if 'if' is supported in jsftemplating. If so, can you
show us the syntax on how to use it ?

Specificially, i am looking for something like this:

<event>
<! beforeEncode
     *if ( $attribute{"version"} == "EE") *{
          println(value="this is EE version");
    }
     ???? Can i use else here ?
     *if ($attribute{"version"} != "EE") *{
          println(value=" This is NOT EE version");
    }
 />
</event>

thanks
Anissa