views:

20

answers:

1

Friends,

Our JSP code uses both Spring form tags and JSTL tags. Is there a way that when I search for getFoo() in the Eclipse Java Search, for Eclipse to also return uses of the foo property in the JSP files?

I suspect the answer is "no", because there isn't a way at compile time to tell the types of the JSP beans, but its worth asking, right?

+2  A: 

The JavaEE distro of Eclipse will do that, but only in those cases where the JSP contains type information. Ironically, this only really happens with <jsp:useBean>, which is the old, pre-JSTL way of declaring java beans in the JSP. New-style JSPs are pretty devoid of java type info, and Eclipse has little or nothing to get a handle on.

skaffman