JSP Validate adds unused imports [message #501464] |
Wed, 02 December 2009 08:17  |
Eclipse User |
|
|
|
In multiple versions of Eclipse I've used, when the JSP validator runs, it generates the .java on the fly and attempts to compile that. When this java is created, 3 imports are always added:
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
However, these are not always used. I have higher level compile options set to error when unused imports are found, thus 3 errors per JSP. And I have 400 JSPs so my error list is annoyingly long.
Anyway around this? And I dont mean not checking for unused imports.
Thanks
|
|
|
Re: JSP Validate adds unused imports [message #501468 is a reply to message #501464] |
Wed, 02 December 2009 08:20  |
Eclipse User |
|
|
|
In article <hf5pcg$l4$1@build.eclipse.org>, nhughes@limitedbrands.com
says...
> In multiple versions of Eclipse I've used, when the JSP validator runs, it generates the .java on the fly and attempts to compile that. When this java is created, 3 imports are always added:
>
> import javax.servlet.*;
> import javax.servlet.http.*;
> import javax.servlet.jsp.*;
>
> However, these are not always used. I have higher level compile options set to error when unused imports are found, thus 3 errors per JSP. And I have 400 JSPs so my error list is annoyingly long.
>
> Anyway around this? And I dont mean not checking for unused imports.
I'm running into the same issue, but hadn't gotten around to posting yet
(maybe because I don't have so many .jsp files).
--
/~\ The ASCII
\ / Ribbon Campaign
X Against HTML
/ \ Email!
Remove the ns_ from if replying by e-mail (but keep posts in the
newsgroups if possible).
|
|
|
Powered by
FUDForum. Page generated in 0.03732 seconds