Hi
I have a simple servlet application where a HTML login form directs to my servlet. I have placed the Login app in webapps under
Tomcat. Widin Login app , I have created login.html and WEB-INF dir wid web.xml & classes dir. Ihave placed the corresponding servlet class loginsvlt.class in classes directory.
web.xml:
<?xml version="1.0" encoding="UTF-8" ?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<display-name>Login Application</display-name>
<description>
This is a simple web application with a source code organization
based on the recommendations of the Application Developer's Guide.
</description>
<servlet>
<servlet-name>LOGIN</servlet-name>
<servlet-class>loginsvlt</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>LOGIN</servlet-name>
<url-pattern>/Login</url-pattern>
</servlet-mapping>
</web-app>
As I dont have any package structure under classes, I have given the servlet-class as loginsvlt.
Started tomcat..http://localhost:8080/Login/login.html
Got 404 error ...Requested resource /Login/Login is not available.
Please help! Im a newbie to servlets. Im struck at this point since yesterday even after restarting tomcat several times.
PS: I have a simple Date application(first app deployed in tomcat) where I followed the same configuration and its working fine.