I'm new so if I just don't get it yet, sorry.
class MyObj {
public String thing( int i ) { return String.valueOf( i*i ); }
}MyObj sysObj = new MyObj();
context.add("sys",mySysObj);My template looks like:
$sys.thing(##) just a test
which results in a crash.
org.apache.velocity.exception.ParseErrorException: Encountered " \t" at line 18, column 11
Was expecting one of:
<EOF>
...
But if I split that line of my template
$sys.thing( ##) just a test
or if I simply move the ## over by one character
$sys.thing()## just a test
The template is processed without any problems. giving the output
$sys.thing()
Why is the single line comment not working when it is between the parenthesis, when a true end of line at the same spot works fine?
I discovered this while trying to output the line $sys.thing(#)
to show the usage of the sys.thing method within the template. I've been trying to escape the $ or # with a backslash, but nothing give me what I want so that no substitution takes place and I don't get a backslash included in the output.
Regards,
Scott
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
