Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

a problem about "getPackage" method at IBM Websphere4

  Asked By: Glenn    Date: Nov 25    Category: Java    Views: 536

I found a problem when i use ibm was4. I want to get my self class's
package name in jsp page, but the result is "null", how ever the system
class's result is right

the code like this:
out.println("The package is " + MySelfClass.class.getPackage());
out.println("The sys package is " + String.class.getPackage());
the result is:
The package is null
The sys package is java.lang

There are no any problem in other web container

The env :
Windows 2000;
Websphere 4, fixed 403



No Answers Found. Be the First, To Post Answer.

Didn't find what you were looking for? Find more on a problem about "getPackage" method at IBM Websphere4 Or get search suggestion and latest updates.