velocity-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Becky Cartine (JIRA)" <...@velocity.apache.org>
Subject [jira] Commented: (VELOCITY-795) Velocity.evaluate String - ParseErrorException: Encountered "<EOF>"
Date Tue, 25 Jan 2011 19:06:47 GMT

    [ https://issues.apache.org/jira/browse/VELOCITY-795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12986616#action_12986616
] 

Becky Cartine commented on VELOCITY-795:
----------------------------------------

The attached zip files contains two VTL  templates for testing.
Here are the tags listed in the stacktrace.

Was expecting one of:
    "(" ...
    <RPAREN> ...
    <ESCAPE_DIRECTIVE> ...
    <SET_DIRECTIVE> ...
    "##" ...
    "\\\\" ...
    "\\" ...
    <TEXT> ...
    "*#" ...
    "*#" ...
    "]]#" ...
    <STRING_LITERAL> ...
    <END> ...
    <IF_DIRECTIVE> ...
    <ELSEIF_DIRECTIVE> ...
    <ELSE_DIRECTIVE> ...
    <INTEGER_LITERAL> ...
    <FLOATING_POINT_LITERAL> ...
    <WORD> ...
    <BRACKETED_WORD> ...
    <IDENTIFIER> ...
    <DOT> ...
    "{" ...
    "}" ...
    <EMPTY_INDEX> ...
    

> Velocity.evaluate String - ParseErrorException: Encountered "<EOF>" 
> --------------------------------------------------------------------
>
>                 Key: VELOCITY-795
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-795
>             Project: Velocity
>          Issue Type: Bug
>    Affects Versions: 1.7
>         Environment: Mac OSX, Java 1.5, Velocity 1.7
>            Reporter: Becky Cartine
>         Attachments: test-velocity.zip
>
>
> When I include an #if statement twice in a velocity template, I get a ParseErrorException.
> If I remove the first occurance of the #if statement below, there are no errors.
> <html>
> <body>
> some text here
> #if ($message)
>  Message:
> #end
> some more text
> #if ($message)
>   Message:
> #end
> </body>
> </html>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org


Mime
View raw message