Is there anything in EL that allows you to force existence of a variable ?

This is similar to the struggles i had with velocity vs freemarker. 

Velocity assumes non-existence is ok and just output null where as FreeMarker 
takes the opposite stance and complains if it does not exist plus having syntax 
for allowing you to provide the default in case of "non-existence".

I like the freemarker way much better since you are explicit about wether 
null/not-there is expected or not.

In any case, providing a way for an EL expression to say "this variable 
should/must be here" + a decent exception message in case it is not, would be a 
good help to everyone trying to write an application.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972840#3972840

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972840
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to