You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Becky Cartine (JIRA)" <de...@velocity.apache.org> on 2011/01/24 22:15:55 UTC

[jira] Reopened: (VELOCITY-795) Multiple #if statements causes ParseErrorException: Encountered ""

     [ https://issues.apache.org/jira/browse/VELOCITY-795?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Becky Cartine reopened VELOCITY-795:
------------------------------------


I upgraded to Velocity 1.7 and still get the ParseErrorException.  Here is the template:

<html>
<body>

The attached ZIP file is for the following filing:
<br/>
<br/>
Trust: ${owner.displayName} 
<br/>
Filing Date: ${filing.filingDate}
<br/>
#if ($submitDate)
  Receipt Date: ${submitDate}
  <br/>
#end
Filed by: ${filing.filer.displayName}
<br/>
Form: ${filing.submissionType}
<br/>
Effective Date: ${effectivenessDateOfReport}
<br/>
<br/>
#if ($message)
  Message:
  <p>
  ${message}
  </p>
#end

</body>
</html>

> 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: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org