It works! Thanks for giving me the hint! But I have to declare even more
specific or the class can't be found, like:
com.login.User temp = new com.login.User();
temp.dofunctions();
This really looks stupid, and doesn't make any sence to me. Why import
= "com.login.*" in <%@ page> tag doesn't work??
Wen Yeu
> Please try calling the class directly instead of using the import
statement:
> example
>
> User temp = new User();
> User.dofunctions();
>
> Goodluck!
>
> --
>
> On Wed, 7 Mar 2001 03:38:36
> Wen Yeu Feng wrote:
> >Hi,
> >
> >I apologize if this simple question already been asked.
> >
> >I followed Pro-JSP book installed Apache, and Tomcat on my computer.
> >Everything works fine, I can play with all the examples. Now I'm trying
to
> >create my first web application. I create a folder "Myapp" under
jaharta-
> >tommcat/webapps. I put my index.html and .jsp files under Myapp folder.
> >The file structure under Myapp folder like this:
> >
> >-webapps(folder)
> > -Myapp(folder)
> > -index.html
> > -login.jsp
> > -WEB-INF(folder)
> > -classes(folder)
> > -com(folder)
> > -login(folder)
> > -Login.class
> > -User.class
> >I go to http://localhost/Myapp, I can see my index.html page. When
> >index.html calling login.jsp, login.jsp will use Login and User classes.
> >(just like the example code in ch05. But in my login.jsp, I
> >import "com.login.*") When I go from index.html and trigger login.jsp,
it
> >gave me an error saying that can't find User.class. Can anyone tell me
> >what I'm missing?
> >
> >I added Context for Myapp in server.xml for jakarta-tomcat's
configuration.
> >
> >Wen Yeu
>