You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Igor Fedulov <if...@outlook.net> on 2002/01/31 22:40:10 UTC
what was the resolution with static classes in templates?
What was the resolution with request to be able to do something like:
$TextUtils.toHTML($row.articleHtml)
without writting a wrapper and putting it in context. I mean is it
possible to write something like this:
$staticGetter.TextUtils.toHtml($blah)
where staticGetter is an instance of some class which will have get(String
className) method and then use some magic to get .toHtml method
executed...
Am I reading the wrong page? It's been snowing in Chicago lately so It's
hard to think straight :)
BTW I really do hate to write something like:
class foo {
foo() {}
public StringBuffer toHtml(String blah) {
return TextUtils.toHtml(blah);
}
}
:)
--
Best regards,
--
HTTP is a stateless protocol, and the Internet is a stateless development
environment
--
Igor Fedulov
E-mail : ifedulov@outlook.net
Work Ph: 773.775.1595
Home Ph: 773.281.8938
Cell Ph: 773.580.5935
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>