File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes removing unnecessary import from jsp AND java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "removing unnecessary import from jsp AND java" Watch "removing unnecessary import from jsp AND java" New topic

removing unnecessary import from jsp AND java

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944

I am using IBM VisualAge 4.0 doing a Web-application with jsp's. I want to delete unnecessary import statements from both, the jsp files and the java classes.
Yet I found a few tools which work fine for java files (IntelliJ IDE, WoodenChair import+). The Problem here is that these tools do not take in consideration the java code in the jsp's and screw up.
Does anyone know a tool that could help me? Or is the win of having proper import statements too less to bother?
thx for your help!
greets andreas
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13035
Extra import statements will only affect the compilation of the JSP, I don't think it is worth fooling with to save compilation time. However, in terms of documenting your code, useless import statements could cause some future programmer annoyance when he or she can't figure out what you are doing.
Sandeep Jain
Ranch Hand

Joined: Oct 25, 2000
Posts: 124
Hi ,
Having etra statement does not make any differece . Because all of them are not included in the file at the Runtime when u make an object of the required class , the class is then looked up and is taken .
Its not like # include pre-prossor libaries.

Try and Try Till u succeed<br /> <br />Sandeep Jain
I agree. Here's the link:
subject: removing unnecessary import from jsp AND java
It's not a secret anymore!