Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-2710

property-tag has a problem in freemarker

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • 2.0.11.1
    • None
    • Value Stack
    • None
    • Java 1.6.0_05

    Description

      <@s.propery value="namespace" /> throws an Exception while
      &

      {namespace}

      doesn't. But these both should lead to identical results.

      Code the exception occurs in:
      <@s.push value="%

      {@org.apache.struts2.ServletActionContext@getActionMapping()}

      ">
      ${namespace}
      <@s.propery value="namespace" />
      </@s.push>

      Error message:
      FreeMarker template error!

      on line 10, column 37 in public/dojoSearch.ftl s.propery not found.
      The problematic instruction:
      ----------
      ==> user-directive s.propery [on line 10, column 37 in public/dojoSearch.ftl]
      in user-directive s.push [on line 8, column 1 in public/dojoSearch.ftl]
      in include content [on line 80, column 33 in static/page_template.ftl]
      ----------

      Java backtrace for programmers:
      ----------
      freemarker.core.InvalidReferenceException: on line 10, column 37 in public/dojoSearch.ftl s.propery not found.
      at freemarker.core.UnifiedCall.accept(UnifiedCall.java:134)
      at freemarker.core.Environment.visit(Environment.java:208)
      at freemarker.core.MixedContent.accept(MixedContent.java:92)
      at freemarker.core.Environment.visit(Environment.java:208)
      ...

      Attachments

        Activity

          People

            Unassigned Unassigned
            simon.void Stephan Schroeder
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: