--- Nathan Bubna <[EMAIL PROTECTED]> wrote:
> Anthony said:
> ...
> > The documentation does look good. I did find one more thing.
> >
> > In the FormTools documentation in VelocityStruts, several of the
> > examples include parantheses when using the "attribute" method of
> > bean access; the parentheses should be dropped. For example, under
> > $form.getToken() and $form.getTokenName(), the alternative is
> > listed as $form.token() and $form.tokenName().
>
> 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.
Just to be sure I wasn't misunderstood, the items like $form.token() in
the examples should be $form.token. I was pointing out a typo (since
the parentheses are meant for method names, not bean property names).
On Nathan's comments. I agree.
__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]