Velocity
  1. Velocity
  2. VELOCITY-795

Velocity.evaluate String - ParseErrorException: Encountered "<EOF>"

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Not a Problem
    • Affects Version/s: 1.7
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Mac OSX, Java 1.5, Velocity 1.7

      Description

      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>

      1. test-velocity.zip
        1.11 MB
        Becky Cartine

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Becky Cartine
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development