your string matches Velocity semantics up to the "(",
and that is why the parser has trouble witch what comes
afterwards.
Just replace the initial "$" to soothe the barking parser:
#set( $D = '$' )
...
${D}{loginGenerator.generateLogin("John","Smith")}
...
This $D form is what has been called the "failsafe
escaping" or "poor man's escaping" (TM) and will always
work within Velocity.
I even believe you probably don't even need to escape
the html expressions (but this surely depends on your
application):
${D}{loginGenerator.generateLogin("John","Smith")}
Cheers,
Christoph
Arkadiusz Ryćkowski wrote:
I've to generate the string like
${loginGenerator.generateLogin("John","Smith")}
I've tried to use template like
${loginGenerator.generateLogin("$user.firstName","$user.lastName")}
and with escape \${loginGenerator...
but still I cannot manage with error: Encountered "( "" at line
12, column 72
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]