Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (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 Friend
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 KerberFriend
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: Thu Apr 25 01:59:33 GMT 2024

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

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

Back to the top