Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 24 Next »


PLEASE NOTE: Support is under heavy development, some expressions might not be parseable (yet) and will highlight bogus errors


Support for OGNL-expressions is currently under development for upcoming IDEA 11.
The goal is to support OGNL-expressions everywhere in Struts 2 applications in the same way as done for EL-expressions in JSPs.




fully supported


partly supported


not done yet



Editor highlighting

(tick) Syntax highlighting

Basic syntax highlighting (identifiers, numbers, string literals, keywords, ..)

(tick) Escape sequences in strings

Highlight valid/invalid escape sequences

(plus) Semantic highlighting

Highlight missing closing brackets, parentheses, expressions, ...

(tick) Highlight matching parentheses, brackets and braces

(tick) Spellchecker

Strings and identifiers are checked for spelling errors using IDEA's integrated functionality.

(tick) Color settings page

Settings->Editor->Colors & Fonts->OGNL

Customize the appearance (color, style) to your needs:


(tick) Auto-complete closing quote/tick
(tick) Auto-complete closing '}'

Will be inserted automatically after typing "%{" and "{".

(plus) Keywords

Context-sensitive variants.

(minus) Identifiers


(minus) Go To Declaration

for identifiers

(minus) Go To Code references

Navigate to Class/Method references.


(minus) QuickDoc

Provide quick documentation on hovering over elements (type, name).


(tick) CTRL+W support

Expand/shrink selected part of expression semantically by repeatingly pressing CTRL-(Shift)-W:

(plus) Live templates

Settings->Live Templates

Create your own OGNL-specific live templates (Context "OGNL") or use one of the predefined templates.
NOTE Expanding live templates in injected context works with CTRL+J

(minus) Smart Enter

Complete expression syntactically, e.g. adding missing closing ")", "}"

(minus) Surround With

Provide specific "Surround with.." functionality.

(minus) Basic formatting

Provide basic whitespace-formatting settings, e.g. required space before/after operator, identifier

  • No labels