Rahul FEDT
Rahul FEDT
and Technology
FEDT
LAB FILE
IT-455
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="full">
<div class="left">
<div class="image">
<img class="rkimg" src="r.jpg" alt="rahulphoto" />
</div>
<div class="Contact">
<h3>Contact</h3>
<p><b>Email:</b>[email protected]</p>
<p><b>Mobile no :</b>9903915619</p>
</div>
<div class="Skills">
<h3>Skills</h3>
<ul>
<li><b>Programming Languages :</b> Dart, Java, C++, SQL, Python</li>
<li><b>Frontend :</b> Flutter, HTML, CSS</li>
</ul>
</div>
<div class="Language">
<h3>Language</h3>
<ul>
<li>English</li>
<li>Hindi</li>
<li>Nepali</li>
</ul>
</div>
<div class="Hobbies">
<h3>Hobbies</h3>
<ul>
<li>Playing cricket</li>
<li>Singing</li>
</ul>
</div>
</div>
<div class="right">
<div class="name">
<h3>Rahul K Jaiswal</h3>
</div>
<div class="title">
<p>App Developer</p>
</div>
<div class="Summary">
<h3>Summary</h3>
<p>
To secure a challenging position in a reputable organization to
expand my learning knowledge and skill
</p>
</div>
<div class="Education">
<h3>Education</h3>
<table border="dashed">
<tr>
<th>College </th>
<th>Passing Year </th>
<th>CGPA </th>
</tr>
<tr>
<td>USICT</td>
<td>2023</td>
<td>8.1</td>
</tr>
</table>
</div>
<div class="projects">
<h3> Project</h3>
<ul>
<li>
<h4>Doctor Appointment App</h4>
<p>A medical app for doctor appointments.</p>
</li>
<li>
<h4>Instagram Clone</h4>
<p>An Instagram Clone built using Flutter and Firebase</p>
</li>
</ul>
</div>
</div>
</div>
</body>
</html>
STYLE.CSS
@import url('https://fonts.googleapis.com/css2?
family=Poppins:wght@200;300;400;500&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: rgb(253, 254, 255);
display: flex;
justify-content: center;
align-items: center;
font-family: 'Poppins', sans-serif;
}
.image{
display: flex;
justify-content: center;
align-items: center;
}
.rkimg{
width: 125px;
height: 125px;
border-radius: 50%;
}
.full {
width: 50%;
max-width: 1000px;
min-height: 100px;
background-color: rgb(113, 198, 237);
margin: 0px;
display: grid;
grid-template-columns: 2fr 4fr;
}
.left {
position: initial;
padding: 20px;
margin: 0px 20px;
}
.right {
position: initial;
background-color: rgb(215, 240, 243);
padding: 20px;
}
.container{
margin-top: 16px;
}
.container ul , .Language ul, .Hobbies ul , .projects ul{
list-style-type: none;
}
.image, .Contact, .Skills, .Language, .Hobbies, .title,
.Summary, .Education, .project {
margin-bottom: 30px;
}
h2 {
font-weight: 16px;
}
table{
padding: 2px 4px;
}
style.css
#main
{ margin:
0;
padding:0
;
width:10
0%;
height:10
0%; }
#sidebar
{ width: 15%;
position:
absolute; float:
left;
top: 0px;
left: 2px;
top: 0;
left: 0;
height: 74vmax;
background:
#3B5998; color:
#FFFFFF; z-index:
9999; }
#logo1 { width:80%; padding:
25px 20px; background:
#283B66; border-bottom: solid
1px #FFFFFF;
}
#logo
{ background:#28
3B66;
height:140px; }
#content { width:
86.1%; display:
block; margin-top:
-8px; margin-right:
-10px;
background:
#F5F5F5; z-index:
9999999; float:
right;
}
#content
header {
font-family: Georgia, "Times New Roman", Times, serif;
text-align: center; width: 100%;
color: #FFFFFF; background:
#283B66; height: 190px;
border-bottom: solid 1px
#FFFFFF; font-size:7px;
text-shadow: 5px 4px 7px #666666;
}
#content header
p { text-align:
center;
font-size:9px;
}
#cen
ter {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
}
#one
{
float: left;
margin: 1% 2.5%;
text-align:
justify; width:
28%; }
#one a { text-
decoration:none;
font-weight: 700;
color:
#283B66; }
#on
ep
{
font-size: 13px;
padding: 2.5%
5%; margin:
0px; }
#one
h1 {
font-size: 16px; margin: 0px;
padding: 2.5%; background:
rgba(59,89,152,0.5); color:
#FFFFFF;
font-weight: 400;
}
.clear
{ clear:
both;
}
.date {
font-family: Georgia, "Times New Roman", Times,
serif; height: 62px; width: 62px; background:
rgba(59,89,152,0.5);
display: block;
margin: 2.5%;
border-radius:
25%; color:
#FFFFFF;
float:left;
} .day em
{ font-size:
25px; text-
align: left;
display: block;
}
.rightside {
width: 64%;
float: right;
}
.rightside a
{ text-decoration:
none; color:
#283B66; font-
weight: 700; }
#menu
{ height:
35vmax; }
#menu ul
{ width:100
%;
list-style: none;
margin: 0;
padding: 0;
margin-bottom:
0px; position:
absolute; float:
left;
background:
#3B5998; color:
#FFFFFF; z-index:
9999; }
#menu li { position: relative;
margin: 0; padding: 0; border-
bottom: solid 1px #CCCCCC;
}
#menu ul li
{ background-color:
#3B5998;
}
#menu ul li a
{ text-
decoration:none;
font-size: 19px;
position: relative;
display: block;
padding: 8px
23px; color:
#FFFFFF; z-
index: 2;
}
#menu li ul
{ position:
absolute;
visibility:
hidden; left:
100%; top: -
1px;
background-
color:
#3B5998;
box-shadow:
0px 0px 10px
0px rgba(0, 0,
0, 0.5);
opacity: 0;
}
#menu ul li a:hover
{ color: #FFFFFF;
background:
#283B66;
-webkit-transition: background 0.4s linear 0s, color 0.4s linear 0s;
}
#menu li:hover > ul
{
visibility:visible;
opacity:1;
}
.fa-
home:before
{
content: "\f015";
}
#menu .
fa {
margin-right: 5px;
}
<%
//check if post request if
("POST".equalsIgnoreCase(request.getMethod())) { int
num =
Integer.parseInt(request.getParameter("number")); int
revnum = 0; int temp = num; while(temp > 0){
revnum = revnum*10 + temp%10;
temp =
temp/10; }
}
%>
<%
// Get the current time
java.util.Date d = new java.util.Date();
%>
<%
// Set the refresh interval to 5
seconds int refreshInterval = 5;
%>
</body>
</html>
<h1>File Upload</h1>
</body>
</html>
7) Write a Generic Servlet program to display your own Enrollment
number and Name using Apache Tomcat server.
CODE:
import java.io.*;
import java.util.*;
import javax.servlet.*;
OUTPUT:
8) Write a HTTP Servlet program to display all the HTTP Request
Header parameters.
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Enumeration;
@WebServlet("/RequestHeadersServlet")
public class Rahul extends HttpServlet
{ private static final long serialVersionUID
= 1L;
/**
* @see GenericServlet#GenericServlet()
*/
public Rahul()
{ super(); }
/**
* @see GenericServlet#GenericServlet()
*/ public
Rahul()
{ super();
// TODO Auto-generated constructor stub
}
Rahul2.ja
va
import java.io.*;
import jakarta.servlet.*;
import jakarta.servlet.http.*;
public class Rahul2 extends HttpServlet { private static final long serialVersionUID = 1L;
/**
* @see GenericServlet#GenericServlet()
*/
public Rahul2() {
super();
// TODO Auto-generated constructor stub
}
public void doPost(HttpServletRequest request, HttpServletResponse
response){ try{ response.setContentType("text/html"); PrintWriter out =
response.getWriter(); Cookie ck[]=request.getCookies(); out.print("Hello
"+ck[0].getValue()); out.close();
}catch(Exception e){System.out.println(e);}
}
}
Index.html