+1

Being a bloody-minded idiot, I tried using the formal syntax at first, but there are places where it doesn't seem to work well (like inside the directives), so I tend to use the informal notation now. Velocity != Java.

Nathan Bubna wrote:
I would suggest as a general rule that we go with the more elegant and less
java-like syntax everywhere possible.  for example, things like:

$form.token  instead of  $form.getToken()

$msg.foo  instead of  $msg.get('foo')

#set( $tool.foo =  'bar' )  instead of  $tool.setFoo('bar')

and so on...

things are just shorter, cleaner, and prettier this way.

Nathan Bubna
[EMAIL PROTECTED]


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



--
Ted Husted,
Struts in Action <http://husted.com/struts/book.html>


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

Reply via email to