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
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
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
1.<html>
<head>
<title>hello Ishtyaqe</title>
</head>
<body>
<center>
<font color="red">
</centre>
</body>
</html>
2.
<html>
1
<head>
<title>hello Ishtyaqe</title>
</head>
<body>
<center>
<font color="GREEN">
<tr>
<td>User Name</td>
</tr><br>
<tr>
<td>Father's Name</td>
</tr><br>
<tr>
<td>City</td>
</tr>
<tr>
<td>Nationality</td>
</tr>
<tr>
<td>Sex</td>
</tr>
2
<tr>
<td>Qualification</td>
</tr><br>
<tr>
</tr>
</centre>
</body>
</html>
3.
<html>
<head>
<title>hello Ishtyaqe</title>
</head>
<body>
<center>
<font color="red">
<tr>
<td>User Name</td>
</tr>
<tr>
<td>Father's Name</td>
3
<td><input type="text" value=" "></td>
</tr>
<tr>
<td>City</td>
</tr>
<tr>
<td>Nationality</td>
</tr>
<tr>
<td>Sex</td>
</tr>
<tr>
<td>Qualification</td>
</tr><br>
<tr>
</tr>
</centre>
</body>
</html>
4.
<html>
4
<head>
<title>hello Ishtyaqe</title>
</head>
<body>
<center>
<font color="green">
<tr>
<td>Jwellary</td>
</tr>
<tr>
<td>Furniture</td>
</tr>
<tr>
<td>clothing</td>
</tr>
<tr>
<td>Fooding</td>
</tr>
<tr>
<td>Reservation</td>
</tr>
5
<tr>
<td>Aintertainment</td>
</tr><br>
<tr>
</centre>
</body>
</html>
5.
<html>
<head>
<title>hello Ishtyaqe</title>
</head>
<body>
<center>
<font color="red">
<tr>
<TD>SBI
</TD>
<td> OBC
</td>
6
<td>PNB
</TD>
<TD>UBI
</TD>
<TD>ICICI
</TD><br>
<tr>
</tr>
</centre>
</body>
</html>
6.
<html>
<head>
<title>hello Ishtyaqe</title>
</head>
<body>
<center>
<font color="green">
<br>
7
<h1>
<TR><TD><br>
</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.*;
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>
10
Q.:-Write A program in java to display the
image from the given directory.
import javax.swing.*;
static JFrame f;
JPanel p;
JLabel limg;
public demo34()
p=new JPanel();
f.getContentPane().add(p);
limg=new JLabel(i);
p.add(limg);
new demo34();
f.setSize(300,300);
f.setVisible(true);
11
12