[
https://issues.apache.org/jira/browse/VELOCITY-795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12986042#action_12986042
]
Nathan Bubna commented on VELOCITY-795:
---------------------------------------
That template parses fine for me. If you are sure this is a bug and not a
problem with your own use of Velocity, then can you submit a failing testcase
or runnable example app to demonstrate it? That template alone was not
sufficient for me to replicate the problem, since it works fine for me. If
you think this may be a problem with your template(s) rather than Velocity
itself, please take the question to the [email protected] list. Then
we can help you there where the problem and solution will be more easily
discoverable for future users with the same problem.
If it helps you to decide which way to pursue, it is generally recommended that
people take problems like this to the mailing list first, as that forum is
larger. Then, if it is clear that the problem is a bug in Velocity itself, it
can be moved to the issue tracker.
Also, it is extremely unlikely that two #if statements is the cause of the
problem, as that is an extremely common occurence, even in our own internal
cases. Best to withhold conclusions about the root issue until it's confirmed
by a 2nd party.
> Multiple #if statements causes ParseErrorException: Encountered "<EOF>"
> ------------------------------------------------------------------------
>
> Key: VELOCITY-795
> URL: https://issues.apache.org/jira/browse/VELOCITY-795
> Project: Velocity
> Issue Type: Bug
> Environment: Mac OSX, Java 1.5, Velocity 1.4
> Reporter: Becky Cartine
>
> 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: [email protected]
For additional commands, e-mail: [email protected]