0% found this document useful (0 votes)
65 views26 pages

Rahul FEDT

The document describes an HTML home page design for Guru Gobind Singh Indraprastha University. The home page includes sections for menu, contact details, events, courses offered, student quote, and accreditations. CSS styling is added to structure and style the various sections.

Uploaded by

Rahul J-swal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
65 views26 pages

Rahul FEDT

The document describes an HTML home page design for Guru Gobind Singh Indraprastha University. The home page includes sections for menu, contact details, events, courses offered, student quote, and accreditations. CSS styling is added to structure and style the various sections.

Uploaded by

Rahul J-swal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 26

University School of Information, Communication

and Technology

FEDT
LAB FILE
IT-455

Submitted By:- Submitted To:-


Rahul K Jaiswal Dr. Ruchi Sehrawat
70716403219
B.Tech CSE VII
1) Using HTML Tags, design your own Curriculum Vitae

<!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;
}

2) Using HTML Tags, redesign the home page of GGSIP University


index.html <!
doctype html>
<html lang="en">
<head>
<title>Guru Gobind Singh Indraprastha University</title>
<link rel="stylesheet" href="style.css" type="text/css" />
</head>
<body>
<div id="main">
<div style="top:5px; right:5px; position:absolute;"> <a href="#"> </a>
</div>
<div id="sidebar">
<div id="menu">
<ul>
<li > <a href="#"><i class="fa fa-home"></i>Home</a>
</li>
<li ><a href="#"> <ok>About Us<ok></a>
<ul>
<li ><a href='#'><ok>Overview</ok></a></li>
<li ><a href='#'><ok>Director's Desk</ok></a></li>
<li ><a href='#'><ok>About Management</ok></a></li>
<li ><a href='#'><ok>Important Functionaries</ok></a></li>
<li ><a href='#'><ok>Vision & Mission</ok></a></li>
<li ><a href='#'><ok>Organization Chart</ok></a></li>
<li ><a href='#'><ok>Mandatory Disclosures</ok></a></li>
</ul>
</li>
<li ><a href='#'><ok>Academics</ok></a>
<ul>
<li ><a href='#'><ok>Applied Science</ok></a></li>
<li ><a href='#'><ok>Computer Science & Engineering</ok></a></li>
<li ><a href='#'><ok>Electronics & Communication
Engineering</ok></a></li>
<li ><a href='#'><ok>Electrical & Electronics Engineering</ok></a></li>
<li ><a href='#'><ok>Information Technology Engineering</ok></a></li>
<li ><a href='#'><ok>Mechanical Engineering</ok></a></li>
<li ><a href='#'><ok>Civil Engineering</ok></a></li>
</ul>
</li>
<li ><a href='#'><ok>Admission</ok></a>
<ul>
<li ><a href='#'><ok>Admission's Overview</ok></a></li>
<li ><a href='#'><ok>Courses Offered</ok></a></li>
<li ><a href='#'><ok>Admission Procedure</ok></a></li>
<li ><a href='#'><ok>Instructions for B.Tech Admission</ok></a></li>
<li ><a href='#'><ok>Instructions for M.Tech Admission</ok></a></li>
<li ><a href='#'><ok>Fee Structure</ok></a></li>
<li ><a href='#'><ok>Registration Form</ok></a></li>
<li ><a href='#'><ok>Admission Notices</ok></a></li>
</ul>
</li>
<li ><a href='#'><ok>Research</ok></a>
<ul>
<li ><a href='#'><ok>Project Guidelines for Final Year</ok></a></li>
<li ><a href='#'><ok>Collaborations</ok></a></li>
<li ><a href='#'><ok>TechGuru Sessions</ok></a></li>
</ul>
</li>
<li ><a href='#'><ok>Training & Placement</ok></a>
<ul>
<li ><a href='#'><ok>Training & Placement - Overview</ok></a></li>
<li ><a href='#'><ok>Training & Placement -
Team</ok></a></li> <li ><a href='#'><ok>About Placement
Department</ok></a></li>
<li ><a href='#'><ok>Finishing School</ok></a></li>
</ul>
</li>
<li ><a href='#'><ok>Alumni</ok></a></li>
<li ><a href='#'><ok>Notice Board</ok></a></li>
<li ><a href='#'><ok>Career @ GGSIPU</ok></a>
<li ><a href='#'><ok>Quick Links</ok></a>
</li> <li ><a
href='#'><ok>Downloads</ok></a></li>
<li ><a href='#'><ok>Campus Life</ok></a></li>
</ul>
</div>
<div id="address" style="padding: 8px 23px 8px 23px; color: #ffffff;">
<br>
<strong style="font-size:16px; font-weight:400;"><i>Contact
Us</i></strong>
<p style="font-size:12px;">Golf Course Rd, Sector 16 C &amp; Dwarka,
Delhi<br>
<b>Pin :</b> 110078 <br>
<b>Phone :</b> 91-999999999<br>
<b>Tele-Fax :</b> 91-999999999<br>
<b>Director's Direct Number :</b> 91-99999999<br>
<b>E-mail :</b> [email protected]<br>
<b>WebSite :</b> http://www.ipu.ac.in </p>
<hr>
<p style="font-size:10px; font-weight:400; text-
align:center;">Designed by Rahul Jaiswal.<br> &copy; Copyright
2022.</p>
<hr>
<br>
</div>
</div>
<div id="content">
<header> <img src="image1.jpg" width="100%" height="130" >
<h1><font size="5" >Guru Gobind Singh Indraprastha
University</font></h1>
<p> Established in 1998 as a teaching-cum-affiliating university.</p>
</header>
<div id="center" >
<div id="one">
<h1>Events <a href="#" class="right"></a></h1>
<div class="date">
<div class="day"><em>19</em>
<div class="month"> <em>DEC</em>
</div>
</div>
</div>
<p class="rightside" > <a href="#">Alumni Meet for Batch
( 2010 to 2012 ) </a>. </p> <div class="clear"></div>
<div class="date">
<div class="day"><em>29</em>
<div class="month"> <em>SEP</em>
</div>
</div>
</div>
<p class="rightside" > <a href="#">EMPLOYABILITY TEST From
29-SEP-22 to 01-OCT-22</a></p>
<div class="clear"></div>
<div class="date">
<div class="day"><em>24</em>
<div class="month"><em>SEP</em>
</div>
</div>
</div>
<p class="rightside" > <a href="#" >NSS Day Celebration from (
09 am - 11 am ).</a></p>
<div class="clear"></div>
<div class="date">
<div class="day"><em>21</em>
<div class="month"><em>SEP</em>
</div>
</div>
</div>
<p class="rightside" > <a href="#">Tech Mahindra Placement
Drive ( Day 1 ). </a></p>
<div class="clear"></div>
<br>
<div>
<h1>Rahul Jaiswal <a href="#" style="color:#FFFFFF;"\></a></h1>
<div style="padding:2.5%;">
<div style="float:right; width:55%; padding:2.5%; font-size:12px;">
<strong style="font-size:13px;">Rahul Jaiswal </strong> <br>
<br>
"GGSIPU, in its ten years of existence, has always shown a
positive graph of growth in all areas of functionality..."
<br><br><br>
</div>
</div></div>
</div>
<div id="one">
<h1>Courses offered<a href="#"></a></h1>
<table border="0" style="font-size:13px;
width:100%;
padding:2.5%;">
<tr>
<td><strong>Bachelor of Technology</strong></td>
<td><b>Seats</b></td>
</tr>
<tr>
<td>Computer Science &amp; Engineering</td>
<td>240</td>
</tr>
<tr>
<td>Electronics &amp; Communication Engineering</td>
<td>180</td>
</tr>
<tr>
<td>Electrical &amp; Electronics Engineering</td>
<td>120</td>
</tr>
<tr>
<td>Mechanical Engineering</td>
<td>180</td>
</tr>
<tr>
<td>Information Technology</td>
<td>60</td>
</tr>
<tr>
<td>Civil Engineering</td>
<td>60</td>
</tr>
<tr>
<td style="font-style:italic;">SECOND SHIFT</td>
</tr>
<tr>
<td>Mechanical Engineering</td>
<td>60</td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td><strong>Master of Technology</strong></td> <td><b>Seats</b></td>
</tr>
<tr>
<td>Computer Science &amp; Engineering</td>
<td>18</td>
</tr>
<tr>
<td>Electronics &amp; Communication Engineering</td>
<td>18</td>
</tr>
</table>
</div>
<div id="one">
<h1>Highlights<a href="#"></a></h1>
<p> <a href='#'>CONGRATULATIONS!!! to all students selected in
"Tech mahindra". </a></p>
<p> <a href="#">Student List Selected in Tech Mahindra.</a> </p>
<p> <a href="#">Selection Criteria for Campus Drive &amp;
Placement.</a> </p>
<p> <a href="#">Online Aptitude Practice session for B.Tech Final
Year (All Branch).</a> </p>
<p> <a href="#">Blood Donation Camp on 30/09/15.</a> </p>
<p> <a href="#">EMPLOYABILITY TEST Notice.</a></p>
<br>
<div>
<h1>Accreditations<a href="#" style="color:#FFFFFF;"></a></h1>
<div style="padding:2.5% 20%"> <img src="image1.jpg"
width="100%"> <img src="image1.jpg" width="100%"><br>
<div class="clear"></div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>

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;
}

3) Write a XML Program to display Student profile having tags like


Student Roll No., Name, Age, Semester, Email Id, Phone number,
Department Name.
Apply And validate using DTD.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Profile [
<!ELEMENT Profile (StudentRollNo,
Name,Age,Semester,Email,Phone,DepartmentName)>
<!ELEMENT StudentRollNo (#PCDATA)>
<!ELEMENT Name (#PCDATA)>
<!ELEMENT Age (#PCDATA)>
<!ELEMENT Semester (#PCDATA)>
<!ELEMENT Email (#PCDATA)>
<!ELEMENT Phone (#PCDATA)>
<!ELEMENT DepartmentName (#PCDATA)>
]>
<Profile>
<StudentRollNo>70716403219</StudentRollNo>
<Name>Rahul Kumar Jaiswal</Name>
<Age>22</Age>
<Semester> 7th Semester</Semester>
<Email>[email protected]</Email>
<Phone>9999999999</Phone>
<DepartmentName>CSE</DepartmentName>
</Profile>

4) Write a JSP Program to check whether an input number is


Palindrome number or not.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Check if a Number is Palindrome or not in JSP</title>
</head>
<body>
<h2>Check if a Number is Palindrome or not in JSP</h2>
<form action="" method="post">
<label> Enter a Number: </label>
<input type="number" name="number" />
<input type="submit" name="submit" />
</form>
</body>
</html>

<%
//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; }

//if yes then palindrom, if no then it is not


if (revnum == num) {
out.println(num + "<span> is Palindrome</span>");
} else {
out.println(num + "<span> is not a Palindrome</span>");
}

}
%>

5) Write a JSP Program to auto refresh a page.


<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-
1">
<title>Auto Refresh Page</title>
</head>
<body>

<h1>Auto Refresh Page</h1>

<%
// Get the current time
java.util.Date d = new java.util.Date();
%>

<p>Current time: <%= d %></p>

<%
// Set the refresh interval to 5
seconds int refreshInterval = 5;
%>

<meta http-equiv="refresh" content="<%= refreshInterval %>">

</body>
</html>

6) Write a JSP Program to upload files into the server.

<%@ page language="java" contentType="text/html; charset=UTF-8"


pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>File Upload</title>
</head>
<body>

<h1>File Upload</h1>

<form action="upload" method="post" enctype="multipart/form-data">


Select file to upload:
<input type="file" name="file">
<br>
<input type="submit" value="Upload">
</form>

</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.*;

public class enroll extends GenericServlet


{
public void service(ServletRequest req, ServletResponse res) throwsServletException,
IOException
{
res.setContentType("text/html"); PrintWriter out = res.getWriter(); out.println("<html>");
out.println("<head>"); out.println("<title>Name</title>"); out.println("</head>");
out.println("<body>");
out.println("<h1>Name: Rahul Kumar Jaiswal</h1>");
out.println("<h2>Enrollment No.: 70716403219</h2>");
out.println("</body>"); out.println("</html>");
}
}

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;

import jakarta.servlet.GenericServlet; import


jakarta.servlet.ServletException; import
jakarta.servlet.annotation.WebServlet;
import jakarta.servlet.http.HttpServlet;
import
jakarta.servlet.http.HttpServletRequest;
import
jakarta.servlet.http.HttpServletResponse;

@WebServlet("/RequestHeadersServlet")
public class Rahul extends HttpServlet
{ private static final long serialVersionUID
= 1L;
/**
* @see GenericServlet#GenericServlet()
*/

public Rahul()
{ super(); }

protected void doGet(HttpServletRequest request, HttpServletResponse response)


throws ServletException, IOException {
Enumeration<String> headers = request.getHeaderNames();
PrintWriter out =
response.getWriter();
response.setContentType("text/html"
); out.print("<html>");
out.print("<body>");
out.print("<h1>The Request Headers are as follows : </h1>");
out.print("<table border='1'>");

while (headers.hasMoreElements()) { String


header = headers.nextElement(); String
headerValue = request.getHeader(header);
out.print("<tr>"); out.print("<td>");
out.print(header); out.print("</td>");
out.print("<td>"); out.print(headerValue);
out.print("</td>");
out.print("</tr>");
}
out.print("</table>");
out.print("</body>");
out.print("</html>");
}
}
9) Write a HTTP Servlet program to create a Cookie.
Rahul.java

import java.io.*; import jakarta.servlet.*;


import jakarta.servlet.http.*;
public class Rahul extends HttpServlet {
private static final long serialVersionUID = 1L;

/**
* @see GenericServlet#GenericServlet()
*/ public
Rahul()
{ super();
// TODO Auto-generated constructor stub
}

public void doPost(HttpServletRequest request, HttpServletResponse


response){ try{
response.setContentType("text/html");
PrintWriter out = response.getWriter();
String n=request.getParameter("userName");
out.print("Welcome "+n);
Cookie ck=new Cookie("uname",n);//creating cookie object
response.addCookie(ck);//adding cookie in the response
//creating submit button out.print("<form
action='Rahul2' method='post'>");
out.print("<input type='submit' value='go'>");
out.print("</form>"); out.close();
}catch(Exception e){System.out.println(e);}
}
}

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

<form action="Rahul" method="post">


Name:<input type="text" name="userName"/><br/>
<input type="submit" value="go"/>
</form>
10) Write a JDBC Program to fetch the employees records from the
Employee table designed in MS Access. The Table should have fields like :
Employee ID, Name, DOB, Address, Department, DOJ, Position etc.
import java.sql.*;
public class EmployeeFetcher { //
JDBC driver name and database
URL
static final String JDBC_DRIVER = "sun.jdbc.odbc.JdbcOdbcDriver";
static final String DB_URL = "jdbc:odbc:EmployeeDB";
// Database credentials
static final String USER
= ""; static final String
PASS = "";
public static void main(String[] args) {
Connection conn =
null; Statement stmt
= null; try {
// Register JDBC driver
Class.forName(JDBC_DRIVER);
// Open a connection to the database
conn = DriverManager.getConnection(DB_URL, USER, PASS);
// Create a statement stmt =
conn.createStatement();
// Execute a query to select all employees
String sql = "SELECT * FROM Employee";
ResultSet rs = stmt.executeQuery(sql);
// Process the result set
while (rs.next()) {
// Retrieve data from each column by
name int id = rs.getInt("EmployeeID");
String name = rs.getString("Name");
Date dob = rs.getDate("DOB");
String address = rs.getString("Address");
String department = rs.getString("Department");
Date doj = rs.getDate("DOJ");
String position = rs.getString("Position");
// Print employee data to the console
System.out.println("ID: " + id);
System.out.println("Name: " + name);
System.out.println("DOB: " + dob);
System.out.println("Address: " + address);
System.out.println("Department: " + department);
System.out.println("DOJ: " + doj);
System.out.println("Position: " + position);
}
rs.close();
stmt.close();
conn.close();
} catch (SQLException
se) { // Handle errors for
JDBC
se.printStackTrace();
} catch (Exception e) { //
Handle errors for
Class.forName
e.printStackTrace();
} finally {
// Finally block used to close
resources try { if (stmt != null) {
stmt.close();
}
} catch (SQLException se2) {
// Nothing we can do
}
try { if (conn !
= null) {
conn.close();
}
} catch (SQLException se) {
se.printStackTrace();
}
}
}
}

You might also like