Thanks, Jason. I have access only to templates for doing what I want
to do. Meaning, I have no access to the java code behind it. So, I guess
I'm out of luck there to do what you're suggesting.
Having said that, is there any way I can get "255 - $value" with $value
being a string?
Ramin
On 5/25/05, Jason Pettiss <[EMAIL PROTECTED]> wrote:
> You should really try to avoid being too clever in a template. Java is
> good for doing logical operations. Templates are good for creating
> content. Try to keep the business logic in Java.
>
> Btw, to split on '.' in Java you'd need to do "\\.". You need to escape
> the backslash so that a literal backslash goes to the regexp evaluator.
> But in a template you'd just need something like $mask.split('\.').
> Note the use of single quotes!
>
> If you want to use a static method you need to wrap it with an instance
> method. As long as you're doing that why not just implement the full
> method to do what you need. Make life easier for yourself. Write
> yourself a method which does the right thing. And toss an instance of
> that object into your Context.
>
> Jason Pettiss
> [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]