Hi,

    In a jsp if I want to use a bean or a class, is it necessary that the
bean or class should be in a package(ie while writing the bean or class is
package xxxx; should be the first statement).
For ex:

package Demo1;
public class XXX ... { }

I compiled the above program with javac -d . XXXX.java  Then I got a class
file in Demo1 package which is under the Demo directory. Demo directory is
in the classpath. Then I am able to access the class or bean using
Demo1.XXXX x =  new Demo1.XXXX();

But the problem is when I compiled the above program with javac XXX.java  I
got a class file Demo directory. Demo directory is in the classpath. When I
am accessing the class or bean using XXXX x =  new XXXX();
Then I am getting the error saying that the class or bean XXXX not found.
Can anybody help me out?

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at
http://profiles.msn.com.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to