tags:

views:

116

answers:

2

Hi all, I've inherited a web application and when setting it up in Eclipse it shows errors in a particular JSP.

The errors have no description associated with them in the Problems view, and clicking them there takes me to the top of the JSP, where the red error underline appears halfway through the string (see below).


... bah, can't post images as a new user.

<%@ page erro[rPage="/basicError.j]sp" %>

[<%@ page import="javax.s]ervlet.ServletContext" %>

Imagine a red 'error' underline under the parts bracketed by [] (bold, etc won't show in this code segment and I can't show the code at all unless it's in a code segment, hence using [ and ].


Clicking the red icon to the left of the lines does nothing.

I've tried re-importing the project, refreshing, validating, moving the lines around, etc, but I always get this error.

Does anyone know what's happening here?

Thanks,

Paul

+1  A: 

Run it. Does it work? Then it's again the Eclipse's builtin JSP validator which is an epic fail. Just disable it in workspace preferences through Web > JSP Files > Validation > scroll list to very bottom and set all EL validation settings to Ignore. Also in the main Validation preference uncheck all checkboxes related to JSP. This however doesn't seem to remove every warning/error, but it at least minimizes the annoyance.

BalusC
Hi, thanks for the fast response. It does indeed work - it's part of a large app which is compiled with an ant build script, and using that it works fine.I've turned off the validation but it still shows the error. Perhaps I should regard this as an annoyance rather than anything bigger.I'll be using Eclipse for future development of the app though so it's a shame it has these problems.Ta,Paul
Paul
A: 

Which version of Eclipse is this? Did you put your app into a Dynamic Web Project?

nitind