Wednesday, March 5, 2014

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

User Home Tabs:

Add Products Page:

    Document   : Add_Product
    Created on : Feb 25, 2014, 12:31:33 PM
    Author     : SDSTAFF

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Product Page</title>
                 <link rel="stylesheet" type="text/css" href="First.css">

         <p id="site">
           G C K Products
        <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>
                 <p align="right"> Hello <%=session.getAttribute("eid")%></p>
                 <p id="heading">Enter Product Details Here</p>
        <form id="form1" name="form1" method="post" action="Product_Register.jsp">
            <table style="">
                <td> Product Id:</td>
                <td> <input type="text" name="productid" id="pid"/></td>
                <td> Product Name:</td>
                <td> <input type="text" name="productname" id="pname"/></td>
                <td> Product Cost:</td>
                <td> <input type="text" name="productcost" id="pcost"/></td>
                <td> <input type="submit" value="Add Product" name="submit1"/></td>
                <td> <input type="reset" value="Reset" name="submit2"/></td>
                      <td height="48" colspan="2">  <%
                                                       String message=request.getParameter("Message");
                                                       if(message!=null && message.equalsIgnoreCase("success"))
                                                               out.println("<font color='red' size='+1'><blink>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Product Added Successfully !</blink></font>");
                                               %> &nbsp;
                  <div id="site1" >
                Copy Rights @ G C K Solutions-2014.

No comments:

Post a Comment