Heading

Wednesday, March 5, 2014

Web Application in Java with JDBC, Servlets, JSp and MYSQL DataBase-3

HomePage.html
 Design Home Page as shown below

Important is just the Home Register and Login links
As shown below. Give link to that using anchor tag and use href attribute.
      Home      Login       Register

Web Application in Java with JDBC, Servlets, JSp and MYSQL DataBase-2

web.xml File:


<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<web-app version="2.4" 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">
    <welcome-file-list>
        <welcome-file>Home_Page.html</welcome-file>
    </welcome-file-list>
   
   
        <servlet>
        <servlet-name>Registration</servlet-name>
        <servlet-class>Registration</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>Registration</servlet-name>
        <url-pattern>/accept</url-pattern>
    </servlet-mapping>
        <servlet>
        <servlet-name>Authentication</servlet-name>
        <servlet-class>Login</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>Authentication</servlet-name>
        <url-pattern>/logme</url-pattern>
    </servlet-mapping>
</web-app>

Web Application in Java with JDBC, Servlets, JSp and MYSQL DataBase-1

Project Architecture of Simple Project (Final Architecture)