I'm trying out IntelliJ IDEA 9 for 30 days, and I like what I'm seeing so far. The only glaring problem I have is that the editor seems to have no idea what to do with JSP implicit object methods...
Example 1:
<body>
<% out.println("Hello, World!"); %>
</body>
The editor marks the "println" in this statement as an error and says: Cannot resolve method 'println(java.lang.String)' This syntax is about as basic as you can get, and it works just fine if I deploy it to my app server (Tomcat 7), but IntelliJ insists that there's no such method for the "out" object. It's not just "out", either. It doesn't recognize any implicit object's method...
Example 2:
<body>
<%
String contextRoot = pageContext.getServletContext().getRealPath("");
.
.
.
%>
</body>
In this case, IntelliJ doesn't recognize the getServletContext() method, but it does recognize the getRealPath() method. How weird is that?
What blows me away is that I've scoured the Web for any mention of this problem with IntelliJ 9, and I've come up with zilch. This suggests that maybe I've done something freakish with my setup, but I can't imagine what. Like I said above, it works just fine if I build and deploy anyway; it's just irritating to have my JSP pages filled with false red errors all over the place. Kinda defeats the purpose of using an intelligent IDE in the first place.
Anyway, I thought I'd toss this in front of the experts and see if you guys can shed some light on the issue. Any insight would be appreciated!