Heading

Wednesday, March 5, 2014

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

Login Success Page(User Home page):

<%--
    Document   : User_Home
    Created on : Feb 24, 2014, 3:19:36 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>Home Page</title>
         <link rel="stylesheet" type="text/css" href="First.css">
    </head>
    <body>
         <%
           HttpSession hs=request.getSession(false);
           if(hs==null)
           {
               RequestDispatcher rd=request.getRequestDispatcher("Login_Page.jsp");
               rd.forward(request, response);
               return;
           }
          
          
        %>
       
         <p id="site">
           G C K Products
        </p>
        <div id="heading">
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="Add_Product.jsp">Add Product</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <a href="View_Product.jsp">View Product</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="Logout.jsp"> Logout</a>
        </div>   
                 <p align="right"> Hello <%=session.getAttribute("eid")%></p>
                
                 <div id="site1" >
            <p>
                Copy Rights @ G C K Solutions-2014.
            </p>
        </div>
    </body>
</html>

No comments:

Post a Comment