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

OGNL: Calling static method does not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Not A Problem
    • 2.1.6
    • None
    • Expression Language
    • None
    • JDK 1.5, Tomcat 5.5.27

    Description

      Calling static method returns nothing.
      For example:

      <s:property value="@java.lang.Integer@parseInt('123')"/>

      returns empty string.

      Attachments

        Activity

          People

            Unassigned Unassigned
            fancy Catalina Wei
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: