You are on page 1of 12

Q 3:- Development of Static Pages using

HTML of an Online Department Store . The


Website should be User Friendly and should
have the following pages.
a. Home Page
b. Registration & User Login
c. User Profile Page
d. Item Catalog
e. Shopping cart
f. Payment by Credit Card
g. Order Confirmation

1.<html>

<head>

<title>hello Ishtyaqe</title>

</head>

<body>

<center>

<font color="red">

<h1>Welcome to online Department Store<h1>

<h2> Welcome to online Department Store me<h2>

<h3> Welcome to online Department Store me<h3>

<h4> Welcome to online Department Store me<h4>

<a href="2.html">GO FOR REGISTRATION</a>

</centre>

</body>

</html>

2.

<html>

1
<head>

<title>hello Ishtyaqe</title>

</head>

<body>

<center>

<font color="GREEN">

<h1> Online Department Store<h1>

<h2> User Profile Page<h2>

<tr>

<td>User Name</td>

<td><input type="text" value=" "></td>

</tr><br>

<tr>

<td>Father's Name</td>

<td><input type="text" value=" "></td>

</tr><br>

<tr>

<td>City</td>

<td><input type="text" value=" "></td>

</tr>

<tr>

<td>Nationality</td>

<td><input type="text" value=" "></td>

</tr>

<tr>

<td>Sex</td>

<td><input type="text" value=" "></td>

</tr>

2
<tr>

<td>Qualification</td>

<td><input type="text" value=" "></td>

</tr><br>

<tr>

<A HREF="3.HTM" > SUBMIT </A><BR>

<A HREF="1.HTML" > BACK </A>

</tr>

</centre>

</body>

</html>

3.

<html>

<head>

<title>hello Ishtyaqe</title>

</head>

<body>

<center>

<font color="red">

<h1> Online Department Store<h1>

<h2> User Profile Page<h2>

<tr>

<td>User Name</td>

<td><input type="text" value=" "></td>

</tr>

<tr>

<td>Father's Name</td>

3
<td><input type="text" value=" "></td>

</tr>

<tr>

<td>City</td>

<td><input type="text" value=" "></td>

</tr>

<tr>

<td>Nationality</td>

<td><input type="text" value=" "></td>

</tr>

<tr>

<td>Sex</td>

<td><input type="text" value=" "></td>

</tr>

<tr>

<td>Qualification</td>

<td><input type="text" value=" "></td>

</tr><br>

<tr>

<A HREF="4.HTM"> SUBMIT </A></BR>

<A HREF="2.HTML"> BACK </A>

</tr>

</centre>

</body>

</html>

4.

<html>

4
<head>

<title>hello Ishtyaqe</title>

</head>

<body>

<center>

<font color="green">

<h1> Online Department Store<h1>

<h2> items Catalog<h2>

<tr>

<td>Jwellary</td>

<td><input type="text" value=" "></td>

</tr>

<tr>

<td>Furniture</td>

<td><input type="text" value=" "></td>

</tr>

<tr>

<td>clothing</td>

<td><input type="text" value=" "></td>

</tr>

<tr>

<td>Fooding</td>

<td><input type="text" value=" "></td>

</tr>

<tr>

<td>Reservation</td>

<td><input type="text" value=" "></td>

</tr>

5
<tr>

<td>Aintertainment</td>

<td><input type="text" value=" "></td>

</tr><br>

<tr>

<A HREF="5.HTM"> SUBMIT</A><BR>

<A HREF="3.HTM"> BACK</A>

</centre>

</body>

</html>

5.

<html>

<head>

<title>hello Ishtyaqe</title>

</head>

<body>

<center>

<font color="red">

<h1> Online Department Store<h1>

<h2> sHOPPING cART<h2>

<tr>

<td>Payment by Credit Cart<td><br>

<TD>SBI

<td><input type="radio" name="Payment by Credit Card" value=" PNB "


CHECKED></td>

</TD>

<td> OBC

<td><input type="radio" name="Payment by Credit Card" value=" UBI "></td>

</td>

6
<td>PNB

<td><input type="radio" name="Payment by Credit Card" value=" OBC "></td>

</TD>

<TD>UBI

<td><input type="radio" name="Payment by Credit Card" value=" SBI "></td>

</TD>

<TD>ICICI

<td><input type="radio" name="Payment by Credit Card" value=" ICICI


"></td>

</TD><br>

<tr>

<a href="6.html" > SUBMIT<A><BR>

<a href="4.htm" > BACK<A><BR>

</tr>

</centre>

</body>

</html>

6.

<html>

<head>

<title>hello Ishtyaqe</title>

</head>

<body>

<center>

<font color="green">

<h1> Online Department Store<h1>

<h2> Order Confermation Slip<h2>

<br>

<a href="6.html" > CONFIRM<A><br></TD>

7
<h1>

Thanks For visiting Us.

<TR><TD><br>

<TD><a href="5.htm" > BACK<A><br></TD>

<TD><a href="1.html" > GO TO HOME<A></TD>

</tr>

</centre>

</body>

</html>

8
Q 4:- Installation Of Weblogic Server
Convert the webpage of assignment 1 as
given above in to dyanamic webpages.

import javax.servlet.*;

import javax.servlet.http.*;

import java.io.*;

public class HelloIshtyaqe extends HttpServlet

public void doPost(HttpServletRequest req,HttpServletResponse res)


throws ServletException,IOException

String name=req.getParameter("a");

res.setContentType("text/html");

PrintWriter out=res.getWriter();

out.println("WelCome "+name);

out.close();

<web-app>

<servlet>

<servlet-name>s1</servlet-name>

<servlet-class>Demo35</servlet-class>

</servlet>

<servlet-mapping>

<servlet-name>s1</servlet-name>

<url-pattern>helloservlet</url-pattern>

9
</servlet-mapping>

</web-app>

<html>
<head>
<title>hello Ishtyaqe</title>
</head>
<body>
<form method="post" action="helloIshtyaqe">
<center>
<font color="red">
<h1>Welcome to online Department Store<h1>
<h2> Welcome to online Department Store me<h2>
<h3> Welcome to online Department Store me<h3>
<h4> Welcome to online Department Store me<h4>

<a href="2.html">GO FOR REGISTRATION</a>


</centre>
</FORM>
</body>
</html>

10
Q.:-Write A program in java to display the
image from the given directory.

import javax.swing.*;

public class demo34

static JFrame f;

JPanel p;

JLabel limg;

public demo34()

p=new JPanel();

f.getContentPane().add(p);

ImageIcon i=new ImageIcon("G:\fish.gif");

limg=new JLabel(i);

p.add(limg);

public static void main(String[] args)

f=new JFrame ("demo 34");

new demo34();

f.setSize(300,300);

f.setVisible(true);

11
12

You might also like