hi,
im making login page using jsp.user names and password entered are matched wit the db.
have placed db connection code in a java classlogin.java...The directory path is
webapps->myfolder->all jsp and html files
webapps->myfolder->WEB-INF->classes->test->login.java
I entered the url in browser also perfectly fine..http://localhost:8085/myfolder/mainpage.jsp
i set the PATH and CLASSPATH variables in control panel too as..
control panel->system->advanced->environment variables->edit->PATH-> ;c:\j2sdk1.4_01\bin (this is the version of java im using)
control panel->system->advanced->environment variables->new->CLASSPATH-> . ; C:\myfolder\WEB-INF\classes
but server still shows followin error..
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 4 in the jsp file: /process.jsp
Generated servlet error:
[javac] Compiling 1 source file
C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\myfolder\process_jsp.java:43: package foo does not exist
foo.Login idHandler = null;
^
An error occurred at line: 4 in the jsp file: /process.jsp
Generated servlet error:
C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\myfolder\process_jsp.java:45: package foo does not exist
idHandler = (foo.Login) pageContext.getAttribute("idHandler", PageContext.REQUEST_SCOPE);
^
An error occurred at line: 4 in the jsp file: /process.jsp
Generated servlet error:
C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\myfolder\process_jsp.java:48: package foo does not exist
idHandler = (foo.Login) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "foo.Login");
^
3 errors
can you please tell whts missin or wrong?..