page import...

Altough I have a package namedcom.milagesoft.membership in the source packages directory; when I want to import this package

<%@ page import="com.milagesoft.membership"%>

to my JSP page, I get an error:

package com.milagesoft does not exist

import com.milagesoft.membership;

[351 byte] By [xyzta] at [2007-11-27 3:28:17]
# 1

You would not import a package.

You would import all classes in a package

or import individual class in a package.

import com.milagesoft.membership; // Fail

import com.milagesoft.membership.*; // OK

import com.milagesoft.membership.YourClassName; // OK

The question is membership is a package name or a class name ?

rym82a at 2007-7-12 8:31:06 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
I completely passed it.Thanks very much..
xyzta at 2007-7-12 8:31:06 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...