Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

ognl expression

description

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="2149bbd435384734-474c55a4-4a724e5b-b5a68b25-81f21d653c8d7d644a16c83e"><ac:plain-text-body><![CDATA[

[0].top

would get the top of the stack cut starting from element 0 in the stack (similar to top in this case)

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="c62fe1cb8cd0212c-38e7bfc6-442b418d-a181878c-ff10f32eed853127bf473f32"><ac:plain-text-body><![CDATA[

[1].top

would get the top of the stack cut starting from element 1 in the stack]]></ac:plain-text-body></ac:structured-macro>

...

OGNL supports accessing static properties as well as static methods. As the OGNL docs point out, you can explicetly explicitly call statics by doing the following:

...

Old Expression

New Expression

foo/blah

foo.blah

foo/someMethod()

foo.someMethod()

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="422b5f23194374b7-1bc6b25d-44e64d88-be0b9c78-24e1c6fe284029df0b980500"><ac:plain-text-body><![CDATA[

../bar/blah

[1].bar.blah

]]></ac:plain-text-body></ac:structured-macro>

@baz

not directly supported, but #baz is similar

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="64707e4ececd22cc-0f9eb80a-424a474f-b19daa8e-80a64d33f5fd49abed64b5f4"><ac:plain-text-body><![CDATA[

.

top or [0]

]]></ac:plain-text-body></ac:structured-macro>

...

name

value

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="bc3c6b6052513844-48aa01cf-4ca14660-ab5da348-3e8fe6a1f34d7ee992f581c3"><ac:plain-text-body><![CDATA[

#parameters['foo'] or #parameters.foo

request parameter ['foo'] (request.getParameter())

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="35d9d886188ddf3d-0492fa5b-410f4f95-8212bd0a-a450741037ce3465d3c49a5c"><ac:plain-text-body><![CDATA[

#request['foo'] or #request.foo

request attribute ['foo'] (request.getAttribute())

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="f2d9ed89e9e837b0-f9443e96-4058491a-a58ba898-39069ed84fab1ad682289e88"><ac:plain-text-body><![CDATA[

#session['foo'] or #session.foo

session attribute 'foo'

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="7bb5612229cabed2-8d2dcb14-4a354c22-bb1593ba-1312bb8ab41df864ce2e1de1"><ac:plain-text-body><![CDATA[

#application['foo'] or #application.foo

ServletContext attributes 'foo'

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="0e6596d7a20ddba7-ba444de5-4a2742f8-a640b791-9fa077067e1d0c708c4add2b"><ac:plain-text-body><![CDATA[

#attr['foo'] or #attr.foo

Access to PageContext if available, otherwise searches request/session/application respectively

]]></ac:plain-text-body></ac:structured-macro>