This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JSP and the fly likes Problem importing default package classes in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Problem importing default package classes in JSP" Watch "Problem importing default package classes in JSP" New topic
Author

Problem importing default package classes in JSP

Seenu Reddy
Ranch Hand

Joined: Apr 03, 2002
Posts: 108
Hi All,
I have java source code in default package. This application is written in early 2001. These classes are used by the JSPs in application. Now we are upgrading the application to web sphere 6.0. I think Web sphere container will not recognize the source code in default package since it uses JDK1.4. I can't move these classes in to packages bcz it is using the third party jar files which has files in default package. How can my JSP import java classes from the default package without problem?

Thanks for your help!

Bye,
Seenu


Thanks,<br />Seenu<br />SCJP1.4,SCBCD1.3,Next-->SCWCD1.4
Stefan Evans
Bartender

Joined: Jul 06, 2005
Posts: 1018
I don't think you can.
There is no workaround that I am aware of.


I guess you will have to FIND a way to move those classes into packages.
Probably time to break out that decompiler and some refactoring tools maybe?
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Decompiling a third party library is certainly not a solution.
Are you sure this third party libraries were not updated for 1.4 ?


[My Blog]
All roads lead to JavaRanch
 
Don't get me started about those stupid light bulbs.
 
subject: Problem importing default package classes in JSP