Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » JSP Validate adds unused imports
JSP Validate adds unused imports [message #501464] Wed, 02 December 2009 13:17 Go to next message
Nick  is currently offline Nick
Messages: 2
Registered: December 2009
Junior Member
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 13:20 Go to previous message
David Kerber is currently offline David Kerber
Messages: 100
Registered: July 2009
Senior Member
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).
Previous Topic:can't run sql query from war
Next Topic:error on javascript autocomplete
Goto Forum:
  


Current Time: Wed Sep 17 23:57:22 GMT 2014

Powered by FUDForum. Page generated in 0.02023 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software