recognizing JSTL dot notation

I would be nice if JSPs could recognize JSTL (EPL)dot notation. Example:
if my bean var name is called 'myBean' and I have regular get methods for a
variable called 'name'; I want to be able to do something like: <c: out
value="${myBean.name}" />

Only when I type the '.' intellisense would kick in and show what get
methods there are (with out parameters).

-Ross


2 comments
Comment actions Permalink

I think this would work on a limited set of expressions only. In case
you put something into the servlet request for example inside a servlet
under the key "myBean" and access it the way you said on the JSP, the
parser would never know what kind of type "myBean" was (unless of course
you tell it with some meta information).

The same applies to methods returning Collections/Maps/etc (e.g.
${something.someList[3].whatNow}). This of course could be solved by
using Generics I suppose.

I would really like some EL support in IDEA but I wonder if IntelliJ has
any brilliant ideas on this topic yet. At least the very first part of
the expression is problematic.

Michael

news.earthlink.net wrote:

I would be nice if JSPs could recognize JSTL (EPL)dot notation. Example:
if my bean var name is called 'myBean' and I have regular get methods for a
variable called 'name'; I want to be able to do something like: <c: out
value="${myBean.name}" />

Only when I type the '.' intellisense would kick in and show what get
methods there are (with out parameters).

-Ross


0

Please sign in to leave a comment.