Dave Bryson wrote:
>
> I'm finding the parser has a problem with exclamation marks directly after
> a variable.
>
> For example:
>
> <html>
> <head><title>Sample velocity page</title></head>
> <body bgcolor="#ffffff">
> <h2>Hello $name!</h2>
> </body>
> </html>
>
> with throw a null error. Here's the log output:
>
> Thu Oct 26 21:01:53 CDT 2000 [error]
>org.apache.velocity.runtime.parser.ParseException: Encountered
>"/h2>\n</body>\n</html>\n" at line 4, column 18.
> Was expecting one of:
> <IDENTIFIER> ...
> "{" ...
>
> If you put a space between the variable and "!" ( $name ! ) everything
> works fine.
>
> Has anyone come across this one before?
Fixed now... sorry 'bout that.
geir
--
Geir Magnusson Jr. [EMAIL PROTECTED]
Dakota tribal wisdom: "when you discover you are riding a dead horse,
the best strategy is to dismount."