Heading

Wednesday, March 5, 2014

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

User Home Tabs:

Log Out Page:
<%--
    Document   : Logout
    Created on : Feb 24, 2014, 3:23:50 PM
    Author     : SDSTAFF
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Logout Successfully</title>
        <link rel="stylesheet" type="text/css" href="First.css">
    </head>
    <body>
       
        <%
           HttpSession hs=request.getSession(false);
           if(hs!=null)
           {
               hs.invalidate();
               RequestDispatcher rd=request.getRequestDispatcher("Login_Page.jsp");
               rd.forward(request, response);
               return;
           }
          
          
        %>
        <h1>Hello User you are Logged Out Successfully.</h1>
        For Login<a href="Login_Page.jsp"> Click Here</a>
        To goto Home Page<a href="Home_Page.html">Click Here</a>
    </body>
</html>
 

No comments:

Post a Comment