...
ognl expression | description | ||
---|---|---|---|
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="81759edad7c52c6c-37908352-46294d11-84d6a222-b37086c6fd256b4096627723"><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="9115322234eae641-25302c75-4ed9466d-8b668378-23125876efdf3a1944b78fe8"><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="2a74b39f75efe103-b70a07ad-42f942d1-9dceb06b-e40c5d95b43ea22ed777706f"><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="2b596f68f1379ae5-8cd5bb75-457a4346-9211a671-a2b3dfb17afd3db94327d1dc"><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="72e8764faa9f063e-f86341e6-468d4409-b855ae03-e56f0168a1b90b33d9e87f83"><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="e32968e155953ba1-1062ebba-4d9744e1-b459a811-60644f3a607411785427c99a"><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="bafb1fee8b2826c0-71961979-43a3468a-88c7ae21-59f784d4509719d6eb9c015c"><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="6d7b98632c3788d7-f80391de-4f9c4bf6-83c193f6-82b88e70b35f5820646e4545"><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="bdced559b2670d82-6ef986db-458d4842-823f901f-74ba7291ecd810dbed01446e"><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> |