Library System

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 104

PROJECT TITLE :-LIBRARY MANAGEMENT SYSTEM

Overview :

Library Management system(LMS) is regarded as the brain of any institute; many institutes
understand the importance of the library to the growth of the institute and their esteem users
(students). Library Management System(LMS) support the general requirement of the library
like acquisition, cataloguing, circulation. Library project system that offers many flexible and
convenient features, allowing librarians and library users to maximize time and efficiency.
Library System gives the all detailed information about students, member and books. It will
track on the how many books available in library and books issued to the students. It shows
popular book among the students. It will provide book lost in library. It keeps the record of the
suppliers and book binders. It generates MIS reports for management. Our software is
customizable for any library requirement.

Features of library management system:

1.Only basic knowledge of computers is required for operation of Library Management System.
2.As it has user-friendly application interface.

3.Library Management System is Customizable and User Configurable.

4.An inbuilt Settings module makes Library Management System flexibility to cater to diverse
organizational needs.

It is build on JSP technology - one of the most latest and upcoming Technologies in the field of
Information Technology, which makes you a forerunner in the world of Information technology.

Library Management System brings information to the user's desktop through integration across
all modules.Library Management System has pre-defined reports. These are used for normal
reporting as well as Administration & member development purpose. Additionally, Library
Management System can be easily customized for their own customized reports.

1.Member as well as student record is maintained

11PGMCAOO869 Page 1
2.Newspapers attendance is maintained

3.Automatic fine fees calculation

4.Keeps record of suppliers .

5.Customized Report designing

6.Configurable as per users requirements.

11PGMCAOO869 Page 2
Abstract
The project titled Library Management System is Library management software for monitoring
and controlling the transactions in a library .The project "Library Management System" is
developed in java which mainly focuses on basic operations in a library like adding new member,
new books, and updating new information, searching books and members and facility to borrow
and return books."Library Management System" is a windows application written for 32-bit
Windows operating systems, designed to help users maintain and organize library. This software
is easy to use for both beginners and advanced user.

Name of the Project Online Library


Vision Online Library is a system, which maintains
books in the server in any format. It allows
storing books, documents, audio and video
files. User can Search and open documents by
giving a simple query.
Deliverables / Functional Specifications Online Library Management System is a
system, which maintains books, documents,
audio/video files. To use this system user must
be a member in this. Then user allowed
storing books, documents, A/V files. Then user
can search by giving a simple query. It is very
difficult search books manually. Online Library
makes easy. Online Library uses user internal
feedback from user to improve search process
in every searching. It also uses indexing to
locate documents very fast in searching which
relate to query. Main aim of online Library
system is providing highly relevant documents
in very short period after giving query. It is just
like Search Engine. It uses Vector space Model
and Probabilistic Model to find similarity
coefficient, weights.

11PGMCAOO869 Page 3
INTRODUCTION

Online Library Management System is a system, which maintains books, documents, files. To use
this system user must be a member in this. Then user allowed storing books, documents. Then user
can search by giving a simple query. It is very difficult search books manually. Online Library makes
easy. Online Library uses user internal feedback from user to improve search process in every
searching. It also uses indexing to locate documents very fast in searching which relate to query.
Main aim of online Library system is providing highly relevant documents in very short period after
giving query. It is just like Search Engine. It uses Vector space Model and Probabilistic Model to find
similarity coefficient, weights.

EXISTING SYSTEM:

Early days Libraries are managed manually. It required lot of time to record or to retrieve the details.
The employees who have to record the details must perform their job very carefully. Even a small
mistake would create many problems. Security of information is very less. Report generations of all
the information is very tough task. Maintenance of Library catalogue and arrangement of the books
to the catalogue is very complex task. In addition to its maintenance of member details, issue dates
and return dates etc. manually is a complex task. All the operations must be performed in perfect
manner for the maintenance of the library without any degradation, which may finally result in the

failure of the entire system.

Benefits of automation

Automation is procedure of converting a traditional system in to a computer organization. To


overcome the defects of the existing system automation was introduced by the computerization of
organization we get many benefits

The main objectives of undertaking this project are:

The students will register them through Online


Individually each member will have his account through which he can access the information
he needs.
Books, documents are stored in server.
User will enter simple query in text box and click on the Submit button.

11PGMCAOO869 Page 4
Time consuming is low, gives accurate results, reliability can be improved with the help of
security.

Proposed System:
To solve the inconveniences as mentioned above, an Online Library proposed.

PROCESS LOGIC:
1. The user inputs data (e.g.: fills out an HTML form and clicks the submit button.)

2. The client (Browser) sends the data to the web server in a standard format (i.e., the GET
method or the POST method).

3. The web server launches the program specified by the user and feeds it the input (form) data.

4. The program (e.g.: servlet) processes the form data and produces another HTML page.

5. The web server sends back the HTML page to the browser.

The web browser then displays the response page.

ANALYSIS

Analysis is the process of understanding the existing system by gathering and interpreting the
facts, diagnosing the problems. It is not just to determining the how best to solve the manual
system problems, it should also work for the system observes the feasibility of system then
design, coding phases will be executed. Analysis phase delivers requirements specification .The
system specification serves as an interface between the designer and developer as well as
between developers and users. This describes the external behavior of the software without
bothering about the internal implementation. Specification must be carefully checked for
suitability, omission, inconsistencies and ambiguities. Problem analysis is performed to getting a
clear understanding of the needs of the clients and the users and what exactly desired form the
software. Analysis leads to the actual specification. During the process of analysis, a massive
amount of information is collected in the form of interviews, questionnaires, and information
from documentation, and so forth. The major problem during analysis is resolving how to
organize the information from documentation, and so forth. So the information can be
effectively evaluated for completeness and consistency.

SYSTEM ANALYSIS EXISTING

11PGMCAOO869 Page 5
SYSTEM: System Analysis is a detailed study of the various operations performed by a system
and their relationships within and outside of the system. Here the key question is- what all
problems exist in the present system what must be done to solve the problem Analysis begins
when a user or manager begins a study of the program using existing system. In our existing
system all the transaction of books are done manually, So taking more time for a transaction like
borrowing a book or returning a book and also for searching of members and books. Another
major disadvantage is that to preparing the list of books borrowed and the available books in
the library will take more time, currently it is doing as a one day process for verifying all records.
So after conducting the feasibility study we decided to make the manual Library management
system to be computerized.

PROPOSED SYSTEM:

Proposed system is an automated Library Management System. Through our software user can
add members, add books, search members, search books, update information, edit information,
borrow and return books in quick time. Our proposed system has the following advantages.

1. User friendly interface

2.Fast access to database

3.Less error

4. More Storage Capacity

5.Search facility

6. Look and Feel Environment

All the manual difficulties in managing the Library have been rectified by implementing
computerization.

A library database needs to store information pertaining to its users (or customers), its workers,
the physical locations of its branches, and the media stored in those locations. We have used
books .

11PGMCAOO869 Page 6
Functions for user:

1.Log in

2.Show book detail in pdf format

Function for register:

1.open register form

2.fill the register form

3.successfully registered on lms.

Function for member:

1.login form

2.display member detail

3.display book detail

Function for purchase:

1.login

2.successfully registered

3.show book detail

4.make a purchase

Why you need it:

1.Improved customer service through greater access to accurate information.

2.Increased productivity and job satisfaction among staff members as it eliminates duplication
of effort.

3.More economical and safer means of storing and keeping track of information.

11PGMCAOO869 Page 7
4.Easier access to Information like management reports and stock etc, as well as more accurate
and faster results from statistical analyses.

5.Reduces errors and eliminating the ennui of long and repetitive manual processing.

6.Greater accountability and transparency in operations.

7.Improved efficiency and effectiveness in administration and management as it has


unprecedented access to real-time information.

8.More reliable security for sensitive and confidential information.

Interface Requirement:
Hardware and software specification

11PGMCAOO869 Page 8
Hardware Specification:

Minimum hardware Specification:

System: Pentium I-100Mhz


RAM: 32MB
Hard disk capacity: 4GB (50 MB free space)
Floppy Disk Drive: 1.44 MB floppy disk drive.
Monitor: VGA
Keyboard: standard keyboard of 104 keys.
Printer: Dot matrix printer.

Existing Hardware Specification:

System: Pentium III-1.2Ghz


RAM: 128MB
Hard disk capacity: 20GB (50 MB free space)
Floppy Disk Drive: 1.44 MB floppy disk drive.
Monitor: SVGA color monitor
Keyboard: standard keyboard of 104 keys.
Printer: HP 640 Ink jet printer.

Software Specification:

11PGMCAOO869 Page 9
JSP : Used as front end

SQL SERVER 2005: Used as the backend in project

MS-Word : Used for making the help file

MS-Paint : For picture editing

DFD :

11PGMCAOO869 Page 10
A data flow diagram (DFD) is a graphical representation of the "flow" of data through
an information system, modeling its process aspects. Often they are a preliminary step used to
create an overview of the system which can later be elaborated. DFDs can also be used for
the visualization of data processing (structured design).
A DFD shows what kind of information will be input to and output from the system, where the
data will come from and go to, and where the data will be stored. It does not show information
about the timing of processes, or information about whether processes will operate in
sequence or in parallel .

CLASSDIAGRAM:

11PGMCAOO869 Page 11
The class diagram is the main building block of object oriented modelling. It is used both for
general conceptual modelling of the systematics of the application, and for detailed modelling
translating the models into programming code. Class diagrams can also be used for data
modeling. The classes in a class diagram represent both the main objects, interactions in the
application and the classes to be programmed.

ER-DIAGRAM:

11PGMCAOO869 Page 12
It is clear that the physical objects from the previous section the member, books, library
correspond to entities in the Entity-Relationship model, and the operations to be done on those
entities holds, checkouts, and so on correspond to relationships. However, a good design will
minimize redundancy and attempt to store all the required information in as small a space as
possible.

USECASE DIAGRAM:

11PGMCAOO869 Page 13
GANTT CHART:

11PGMCAOO869 Page 14
Assumptions;
The database schema is designed under the following assumptions:
A user is identified by the userid. Every user must supply his/her/its userid and
password. Once a user supplied his/her/its id, show bookdetail and user login further.
Each user can have only one id.
No requirement to user can update account time to time once he/she registered than
use a id for lifetime.
No monthly charges for login or browsing.

Project Description

11PGMCAOO869 Page 15
The first page you get is the home page which contains several functions/features for the Library
Management Application. In order to login you fill in only two fields which are user id and
password you have selected when you registered.

11PGMCAOO869 Page 16
Task ; From here you may found following tasks that are provided by the library, which are :-
1.User:There is four section as follows

Home: Library Management System can provide online book, newspaper,


magzine facility to view ,read or purchase. Any user can browse it library system
and access it.
Login: It requires userid and password to access more details about library
system.
Register: Any new user can want to register a library system than open a form
and registered it.
2.Library:There is three section as follows
About us: Any information want to about library system than use about us.
To give detail information of library,books,newspaper,magzine.
Book Detail: It give the information about books
(author,subject,edition,publisher,bookissue,bookreturn,id,bookname) and
purchase it.
Contact Us: Any query about library system than use it.
LoginPage:
11PGMCAOO869 Page 17
Registe(new user):

11PGMCAOO869 Page 18
11PGMCAOO869 Page 19
Member:

11PGMCAOO869 Page 20
AboutUs:

11PGMCAOO869 Page 21
BookDetail:

11PGMCAOO869 Page 22
ContactUs:

11PGMCAOO869 Page 23
Coding:

11PGMCAOO869 Page 24
HomePage:

Layout:layoutpage.jsp

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>

<%@taglib uri="http://java.sun.com/jstl/core" prefix="c" %>

<!DOCTYPE html>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title><tiles:getAsString name="subTitle"/></title>

</head>

<body>

<c:set var="subTitle"><tiles:getAsString name="subTitle"/></c:set>

<table border="2" width="100%">

<tr>

<td align='center' valign='center' width='10%' height='20px'>

<img src='<c:url value="/a/images_1.jpg"/>'

</td>

<td colspan="2" align="center" width="90%" style="background-color:


coral;color:white;height:20px">

<jsp:include page="../common/header.jsp">

11PGMCAOO869 Page 25
<jsp:param name="subTitle" value="${subTitle}"/>

</jsp:include>

</td>

</tr>

<tr>

<td width="10%" valign="top" style="background-color:navajowhite;height: 520px">

<%@include file="../common/navigation.jsp" %>

</td>

<td width="90%" valign="top" align="center" style="background-color:


burlywood;height:520px"><tiles:insert attribute="body"/></td>

</tr>

<tr>

<td colspan="2" width="100%" align="center" style="background-color:


orange;height:18px">

<%@include file="../common/footer.jsp" %>

</td>

</tr>

</table>

</body>

</html>

Header:header.jsp:

11PGMCAOO869 Page 26
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<table border="0">

<tr>

<td><b><u><font size="15" color="black">LIBRARY MANAGEMENT


SYSTEM</font></u></b><br>

<b><font size="6" color='blue'><center>${param.subTitle}</center></font></b>

</td>

</tr>

</table>

Navigation: navigation.jsp:

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<font color="white" size="10"><u><b>User</b></u></font>

<ul>

<li><font color="black" size="5"><a href="home.jsp">Home</a></font></li>

<li><font color="black" size="5"><a href="login.jsp">Login</a></font></li>

<li><font color="black" size="5"><a href="register.jsp">Register</a></font></li>

<li><font color="black" size="5"><a href="member.jsp">Member</a></font></li>

</ul>

<font color="white" size="10"><u><b>Library</b></u></font>

<ul>

<li><font color="black" size="5"><a href="aboutus.jsp">About Us</a></font></li>

11PGMCAOO869 Page 27
<li><font color="black" size="5"><a href="bookdetail.jsp">Book Detail</a></font></li>

<li><font color="black" size="5"><a href="contactus.jsp">Contact us</a></font></li>

</ul>

Footer:foote.jsp

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<b><u>SwatiKumari MCA(2011-2014)</u></b>

Struts:Welcomecomestruts.jsp

<%@page contentType="text/html"%>

<%@page pageEncoding="UTF-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>

<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>

<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>

<html:html lang="true">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title><bean:message key="welcome.title"/></title>

<html:base/>

</head>

<body style="background-color: white">

<logic:notPresent name="org.apache.struts.action.MESSAGE" scope="application">

11PGMCAOO869 Page 28
<div style="color: red">

ERROR: Application resources not loaded -- check servlet container

logs for error messages.

</div>

</logic:notPresent>

<h3><bean:message key="welcome.heading"/></h3>

<p><bean:message key="welcome.message"/></p>

</body>

</html:html>.

Index.jsp:

<%@page contentType="text/html"%>

<%@page pageEncoding="UTF-8"%>

<jsp:forward page="Welcome.do"/>

<tiles:put name="subTitle" value="Login Page"/>

<tiles:put name="body" value="/WEB-INF/view/user/clogin.jsp"/>

</tiles:insert>

Home.jsp:

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>

<tiles:insert page="WEB-INF/view/layout/layoutPage.jsp">

11PGMCAOO869 Page 29
<tiles:put name="subTitle" value="Home Page"/>

<tiles:put name="body" value="/WEB-INF/view/user/cindex.jsp"/>

</tiles:insert>

Cindex.jsp:

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib uri= "http://java.sun.com/jstl/core" prefix="c" %>

<img src='<c:url value="/a/l.jpg"/>'<br>

<p style="background-color:mediumorchid"><b><font size="4">Library management is a sub-


discipline of institutional management that focuses on specific issues faced by libraries and
library management professionals. Library management encompasses normal management
tasks as well as intellectual freedom and fundraising.Main aim of this project is to develop a
online web portal for library for managing different tasks that are involved in library like
managing books issue details, users details,books availability details and payment details. This
application will provide an efficient method to deal with library system. Features available in this
application are adding books, add members, books details, members details,book returning
details.In existing system manual methods are used where every detailare managed manually in
form of records.In this method it is not easy to know exact details of availability of books and
location of books in the library one should search for books in the libraryand inform which is a
time taking process. Managing issues books details andmoney management are not efficient in
this process.</font></b><br><br><br></p>

<h1><b><u><font color="red"> BookDetail:</font></u></b></h1>

<a href="pdf/c++.pdf">Computer,</a>

<a href="pdf/MST.pdf">Science,</a>

<a href="pdf/algo.pdf">Commerce,</a>

11PGMCAOO869 Page 30
<a href="pdf/environmental science.pdf">Arts</a><br>

<h1><b><u><font color="red"> Other:</font></u></b></h1>

<a href="pdf/ajax.pdf">NewsPaper,</a>

<a href="pdf/se.pdf">Magzine</a>

LOGIN PAGE: Login required valid userid and password otherwise not proceed.

11PGMCAOO869 Page 31
Login.jsp:

11PGMCAOO869 Page 32
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>

<tiles:insert page="/WEB-INF/view/layout/layoutPage.jsp">

Clogin.jsp:

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib uri= "/WEB-INF/struts-html.tld" prefix="html" %>

<%@taglib uri= "http://java.sun.com/jstl/core" prefix="c" %>

<!DOCTYPE html>

<html:form action="login.do">

<html:errors property="upass"/>

<%--<div style="position: absolute;left: 100;top: 100;width: 200px;height: 200px;"><img


src='<c:url value="/a/login.jpg"/>'</div>

<div style="position: absolute;left: 700px;top: 30px;width: 200px;height: 300px;"></div>--%>

<img src='<c:url value="/a/log.jpg"/>'<br>

<table border="3" cellspacing="5" color="black">

<tr>

<td>User ID:<html:text property="uid"/></td>

<td><html:errors property="uid"/></td>

</tr>

<tr>

<td>Password:<html:password property="pass"/></td>

11PGMCAOO869 Page 33
<td><html:errors property="pass"/></td>

</tr>

<tr>

<td><html:submit value="SignIn"/></td>

<td><html:submit value="SignUp"/></td>

</tr>

</table>

</html:form>

Model:loginDAO.java

package model;

import java.sql.Connection;

import java.sql.PreparedStatement;

import java.sql.ResultSet;

import java.sql.Statement;

import java.util.ArrayList;

import java.util.List;

import javax.naming.Context;

import javax.naming.InitialContext;

import javax.sql.DataSource;

/**

11PGMCAOO869 Page 34
*

* @author sonu

*/

public class LoginDAO {

Connection con=null;

Connection getCon()

try

Context ctx=new InitialContext();

DataSource ds=(DataSource) ctx.lookup("java:comp/env/jdbc/LibraryDB");

con=ds.getConnection();

catch(Exception ex)

System.out.println("Connection error...."+ex.getMessage());

return con;

public boolean login(String uid,String pass)

11PGMCAOO869 Page 35
{

boolean flag=false;

try

con=getCon();

Statement st=con.createStatement();

ResultSet res=st.executeQuery("select uid,pass from Login");

while(res.next())

if(uid.equals(res.getString(1)) && pass.equals(res.getString(2)))

flag=true;

break;

catch(Exception ex)

System.out.println("Retrieval error...."+ex.getMessage());

11PGMCAOO869 Page 36
return flag;

public int login(login lg)

int res=0;

try

con=getCon();

PreparedStatement pst=con.prepareStatement("insert into Login values(?,?)");

pst.setString(1,lg.getUid());

pst.setString(2,lg.getPass());

res=pst.executeUpdate();

con.close();

catch(Exception ex)

System.out.println("error----"+ex.getMessage());

return res;

11PGMCAOO869 Page 37
public int addlogin(login lg)

int res=0;

try

con=getCon();

PreparedStatement pst=con.prepareStatement("insert into values (?,?,)");

pst.setString(1,lg.getUid());

pst.setString(2,lg.getPass());

res=pst.executeUpdate();

catch(Exception ex)

System.out.println("update error"+ex.getMessage());

return res;

public int dellogin(login lg)

11PGMCAOO869 Page 38
int res=0;

try

con=getCon();

PreparedStatement pst=con.prepareStatement("delete from Login where uid=?");

pst.setString(1,lg.getUid());

res=pst.executeUpdate();

catch(Exception ex)

{}

return res;

Model:login.java

package model;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;

import org.apache.struts.action.ActionMapping;

import org.apache.struts.action.ActionMessage;

/**

11PGMCAOO869 Page 39
*

* @author sonu

*/

public class login {

private String uid;

private String pass;

public login(String uid, String pass) {

this.uid = uid;

this.pass = pass;

public String getUid() {

return uid;

public void setUid(String uid) {

this.uid = uid;

public String getPass() {

return pass;

public void setPass(String pass) {

11PGMCAOO869 Page 40
this.pass = pass;

public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {

ActionErrors errors = new ActionErrors();

if (getUid() == null || getUid().length() < 1) {

errors.add("userid", new ActionMessage("error.uid.required"));

// TODO: add 'error.name.required' key to your resources

if(getPass()==null||getPass().length()<1){

errors.add("password",new ActionMessage("error.pass.required"));

return errors;

Model:Loginform.java

package model;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;

import org.apache.struts.action.ActionMapping;

import org.apache.struts.action.ActionMessage;

11PGMCAOO869 Page 41
/**

* @author sonu

*/

public class loginform extends org.apache.struts.action.ActionForm {

private String uid;

private String pass;

public String getUid() {

return uid;

public void setUid(String uid) {

this.uid = uid;

public String getPass() {

return pass;

public void setPass(String pass) {

this.pass = pass;

11PGMCAOO869 Page 42
public loginform() {

super();

// TODO Auto-generated constructor stub

/**

* This is the action called from the Struts framework.

* @param mapping The ActionMapping used to select this instance.

* @param request The HTTP Request we are processing.

* @return

*/

public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {

ActionErrors errors = new ActionErrors();

LoginDAO d=new LoginDAO();

if(uid.length()==0||pass.length()==0)

if(uid==null||uid.length()<1)

errors.add("uid",new ActionMessage("errors.uid.required"));

11PGMCAOO869 Page 43
if(pass==null||pass.length()<1)

errors.add("pass",new ActionMessage("errors.pass.required"));

else if(!d.login(uid, pass))

errors.add("upass",new ActionMessage("errors.upass.invalid"));

return errors;

Model:Loginsuccess1.java:

package model;

/**

* @author sonu

*/

public class loginsuccess1 {

private String subject;

11PGMCAOO869 Page 44
private String bookname;

private String id;

private String author;

private String edition;

private String publisher;

private String bookissue;

private String bookreturn;

public loginsuccess1(String subject, String bookname, String id, String author, String edition,
String publisher, String bookissue, String bookreturn) {

this.subject = subject;

this.bookname = bookname;

this.id = id;

this.author = author;

this.edition = edition;

this.publisher = publisher;

this.bookissue = bookissue;

this.bookreturn = bookreturn;

11PGMCAOO869 Page 45
loginsuccess1(int aInt, String string, String string0, String string1, String string2, String string3,
String string4, String string5) {

throw new UnsupportedOperationException("Not supported yet."); //To change body of


generated methods, choose Tools | Templates.

public String getSubject() {

return subject;

public void setSubject(String subject) {

this.subject = subject;

public String getBookname() {

return bookname;

public void setBookname(String bookname) {

this.bookname = bookname;

public String getId() {

return id;

public void setId(String id) {

11PGMCAOO869 Page 46
this.id = id;

public String getAuthor() {

return author;

public void setAuthor(String author) {

this.author = author;

public String getEdition() {

return edition;

public void setEdition(String edition) {

this.edition = edition;

public String getPublisher() {

return publisher;

public void setPublisher(String publisher) {

this.publisher = publisher;

11PGMCAOO869 Page 47
public String getBookissue() {

return bookissue;

public void setBookissue(String bookissue) {

this.bookissue = bookissue;

public String getBookreturn() {

return bookreturn;

public void setBookreturn(String bookreturn) {

this.bookreturn = bookreturn;

Controller:login.java

package controller;

import java.io.IOException;

import java.io.PrintWriter;

import javax.servlet.RequestDispatcher;

import javax.servlet.ServletException;

import javax.servlet.http.HttpServlet;

11PGMCAOO869 Page 48
import javax.servlet.http.HttpServletRequest;

import javax.servlet.http.HttpServletResponse;

import javax.servlet.http.HttpSession;

import model.Login;

public class login extends HttpServlet {

* Processes requests for both HTTP

* <code>GET</code> and

* <code>POST</code> methods.

* @param request servlet request

* @param response servlet response

* @throws ServletException if a servlet-specific error occurs

* @throws IOException if an I/O error occurs

*/

protected void processRequest(HttpServletRequest request, HttpServletResponse response)

throws ServletException, IOException {

response.setContentType("text/html;charset=UTF-8");

PrintWriter out = response.getWriter();

try {

/* TODO output your page here. You may use following sample code. */

out.println("<!DOCTYPE html>");

11PGMCAOO869 Page 49
out.println("<html>");

out.println("<head>");

out.println("<title>Servlet login</title>");

out.println("</head>");

out.println("<body>");

out.println("<h1>Servlet login at " + request.getContextPath() + "</h1>");

out.println("</body>");

out.println("</html>");

} finally {

out.close();

// <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the


left to edit the code.">

/**

* Handles the HTTP

* <code>GET</code> method.

* @param request servlet request

* @param response servlet response

* @throws ServletException if a servlet-specific error occurs

11PGMCAOO869 Page 50
* @throws IOException if an I/O error occurs

*/

@Override

protected void doGet(HttpServletRequest request, HttpServletResponse response)

throws ServletException, IOException {

processRequest(request, response);

* Handles the HTTP

* <code>POST</code> method.

* @param request servlet request

* @param response servlet response

* @throws ServletException if a servlet-specific error occurs

* @throws IOException if an I/O error occurs

*/

@Override

protected void doPost(HttpServletRequest request, HttpServletResponse response)

throws ServletException, IOException {

String uid=request.getParameter("uid");

String pass=request.getParameter("pass");

String msg="";

11PGMCAOO869 Page 51
if(new LoginDAO().login(uid,pass))

HttpSession session=request.getSession();

session.setAttribute(uid,pass);

RequestDispatcher rd=request.getRequestDispatcher("success");

rd.forward(request,response);

else

msg="enter user name and password";

request.setAttribute("error",msg);

RequestDispatcher rd=request.getRequestDispatcher("login.jsp");

/**

* Returns a short description of the servlet.

* @return a String containing servlet description

*/

@Override

11PGMCAOO869 Page 52
public String getServletInfo() {

return "Short description";

}// </editor-fold>

Controller:loginAction

package controller;

import javax.servlet.RequestDispatcher;

import javax.servlet.http.HttpServletRequest;

import javax.servlet.http.HttpServletResponse;

import javax.servlet.http.HttpSession;

import model.LoginDAO;

import org.apache.struts.action.ActionForm;

import org.apache.struts.action.ActionForward;

import org.apache.struts.action.ActionMapping;

public class loginAction extends org.apache.struts.action.Action {

/* forward name="success" path="" */

private static final String SUCCESS = "loginsuccess";

/**

* This is the action called from the Struts framework.

11PGMCAOO869 Page 53
*

* @param mapping The ActionMapping used to select this instance.

* @param form The optional ActionForm bean for this request.

* @param request The HTTP Request we are processing.

* @param response The HTTP Response we are processing.

* @throws java.lang.Exception

* @return

*/

@Override

public ActionForward execute(ActionMapping mapping, ActionForm form,

HttpServletRequest request, HttpServletResponse response)

throws Exception {

String uid=request.getParameter("uid");

String pass=request.getParameter("pass");

if(new LoginDAO().login(uid,pass))

HttpSession session=request.getSession();

session.setAttribute(uid,pass);

return mapping.findForward(SUCCESS);

11PGMCAOO869 Page 54
}

Loginsuccess.jsp:

<%@page import="model.loginsuccess1"%>

<%@page import="model.LoginDAO"%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<!DOCTYPE html>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>JSP Page</title>

</head>

<body>

<h1>Hello World!</h1>

</body>

<%

String uid=request.getParameter("uid");

String pass=request.getParameter("pass");

LoginDAO d= new LoginDAO();

loginsuccess1 ls=d.getloginsuccess1(uid,pass);

11PGMCAOO869 Page 55
out.println("<ul>");

out.println("<li>"+ls.getSubject()+"....... "+ls.getBookname()+"............"

+ ls.getId()+"......"+ls.getAuthor()+"......."+ls.getEdition()+"........"

+ls.getPublisher()+"......."+ls.getBookissue()+"........"+ls.getBookreturn()+ "</li>");

out.println("</ul>");

out.println("<a href='login.jsp'>Login Page</a>")

%>

Strutsconfig.xml

<?xml version="1.0" encoding="UTF-8" ?>

<!DOCTYPE struts-config PUBLIC

"-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"

"http://jakarta.apache.org/struts/dtds/struts-config_1_3.dtd">

<struts-config>

<form-beans>

<form-bean name="LoginNewAction" type="controller.LoginNewAction"/>

<form-bean name="registerform" type="model.registerform"/>

<form-bean name="loginform" type="model.loginform"/>

</form-beans>

<global-exceptions>

</global-exceptions>

11PGMCAOO869 Page 56
<global-forwards>

<forward name="loginsuccess" path="/loginsuccess.jsp"/>

<forward name="welcome" path="/Welcome.do"/>

</global-forwards>

<action-mappings>

<action input="/register.jsp" name="registerform" path="/register" scope="request"


type="controller.registerAction">

<forward name="success" path="/registersuccess.jsp"/>

</action>

<action input="/login.jsp" name="loginform" path="/login" scope="request"


type="controller.loginAction">

<forward name="loginsuccess" path="/loginsuccess.jsp"/>

</action>

<action input="/register.jsp" name="registerform" path="/login.do" scope="request"


type="controller.loginAction">

</action>

</action-mappings>

<controller processorClass="org.apache.struts.tiles.TilesRequestProcessor"/>

<message-resources parameter="com/myapp/struts/ApplicationResource"/>

11PGMCAOO869 Page 57
REGISTER:NEW USER

11PGMCAOO869 Page 58
Register.jsp:

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>

<tiles:insert page="/WEB-INF/view/layout/layoutPage.jsp">

<tiles:put name="subTitle" value="Register New User"/>

<tiles:put name="body" value="/WEB-INF/view/user/cregister.jsp"/>

</tiles:insert>

Cregister.jsp:

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib uri= "http://java.sun.com/jstl/core" prefix="c" %>

<!DOCTYPE html>

<form method="post" action="register.do">

<img src='<c:url value="/a/books.png"/>'<br>

<table border="2" cellspacing="5">

<tr>

<td>First Name:</td>

<td><input type="text" property="fname"/></td>

</tr>

<tr>

<td>Last Name:</td>

11PGMCAOO869 Page 59
<td><input type="text" property="fname"/></td>

</tr>

</tr>

<tr>

<td>City:</td>

<td><select name="select">

<option value="unkown">---select---</option>

<option value="Jharkhand">Jharkhand</option>

<option value="bihar">Bihar</option>

<option value="mumbai">Mumbai</option>

<option value="kolkata">Kolkata</option>

<option value="">Banglore</option>

</select>

</td>

</tr>

<tr>

<td>Nationality:</td>

<td><select name="s1">

<option value="unkown">---select---</option>

<option value="India">India</option>

11PGMCAOO869 Page 60
<option value="pakistan">Pakistan</option>

<option value="america">America</option>

<option value="paris">Paris</option>

<option value="southafrica">South Africa</option>

</select>

</td>

</tr>

<tr>

<td>Mobile No:</td>

<td><input type="text" property="mno"</td>

</tr>

<tr>

<td>Email ID:</td>

<td><input type="text" property="emailid"/></td>

</tr>

<tr>

<td>Password:</td>

<td><input type="password" property="pass"/></td>

</tr>

<tr>

11PGMCAOO869 Page 61
<td>Confirm Password:</td>

<td><input type="password" property="cpass"</td>

</tr>

<tr>

<td><input type="submit" value="Submit"/></td>

</tr>

</table>

Registersuccess.jsp:

<%@page import="model.registercon"%>

<%@page import="model.LoginDAO"%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<!DOCTYPE html>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>JSP Page</title>

</head>

<body>

<h1>Hello World!</h1>

</body>

11PGMCAOO869 Page 62
</html>

<%

String fname=request.getParameter("fname");

String lname=request.getParameter("lname");

LoginDAO d= new LoginDAO();

registercon r=d.getregistercon(fname,lname);

out.println("<ul>");

out.println("<li>"+r.getFname()+"....... "+r.getLname()+"............"

+ r.getCity()+"......"+r.getNationality()+"......."+r.getMno()+"........"

+r.getEmailid()+"......."+r.getPass()+"........"+r.getCpass()+ "</li>");

out.println("</ul>");

out.println("<a href='login.jsp'>Login Page</a>");

%>

Model:loginDAO

public registercon getregistercon(String fname,String lname)

registercon r=null;

try

con=getCon();

11PGMCAOO869 Page 63
PreparedStatement pst=con.prepareStatement("select * from bookdetail where fname=? and
lname=?");

pst.setString(1,fname);

pst.setString(2,lname);

ResultSet res=pst.executeQuery();

res.next();

r= new registercon(res.getInt(1),res.getString(2),res.getString(3),res.getString(4),

res.getString(5),res.getString(6),res.getString(7),res.getString(8));

con.close();

catch(Exception ex)

System.out.println("error............"+ex.getMessage());

return r;

model:registercon.java

package model;

/**

11PGMCAOO869 Page 64
*

* @author sonu

*/

public class registercon {

private String fname;

private String lname;

private String city;

private String nationality;

private String mno;

private String emailid;

private String pass;

private String cpass;

public registercon(String fname, String lname, String city, String nationality, String mno, String
emailid, String pass, String cpass) {

this.fname = fname;

this.lname = lname;

this.city = city;

this.nationality = nationality;

this.mno = mno;

this.emailid = emailid;

11PGMCAOO869 Page 65
this.pass = pass;

this.cpass = cpass;

registercon(int aInt, String string, String string0, String string1, String string2, String string3,
String string4, String string5) {

throw new UnsupportedOperationException("Not supported yet."); //To change body of


generated methods, choose Tools | Templates.

public String getFname() {

return fname;

public void setFname(String fname) {

this.fname = fname;

public String getLname() {

return lname;

public void setLname(String lname) {

this.lname = lname;

11PGMCAOO869 Page 66
public String getCity() {

return city;

public void setCity(String city) {

this.city = city;

public String getNationality() {

return nationality;

public void setNationality(String nationality) {

this.nationality = nationality;

public String getMno() {

return mno;

public void setMno(String mno) {

this.mno = mno;

public String getEmailid() {

return emailid;

11PGMCAOO869 Page 67
}

public void setEmailid(String emailid) {

this.emailid = emailid;

public String getPass() {

return pass;

public void setPass(String pass) {

this.pass = pass;

public String getCpass() {

return cpass;

public void setCpass(String cpass) {

this.cpass = cpass;

Controller:registersuccess

package controller;

import javax.servlet.http.HttpServletRequest;

11PGMCAOO869 Page 68
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;

import org.apache.struts.action.ActionForward;

import org.apache.struts.action.ActionMapping;

public class registerAction extends org.apache.struts.action.Action {

/* forward name="success" path="" */

private static final String SUCCESS = "registersuccess";

* @param mapping The ActionMapping used to select this instance.

* @param form The optional ActionForm bean for this request.

* @param request The HTTP Request we are processing.

* @param response The HTTP Response we are processing.

* @throws java.lang.Exception

* @return

@Override

public ActionForward execute(ActionMapping mapping, ActionForm form,

HttpServletRequest request, HttpServletResponse response)

throws Exception {

return mapping.findForward(SUCCESS);

11PGMCAOO869 Page 69
MEMBER:This form will display member information

11PGMCAOO869 Page 70
Member.jsp

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>

<tiles:insert page="/WEB-INF/view/layout/layoutPage.jsp">

<tiles:put name="subTitle" value="MemberDetail"/>

<tiles:put name="body" value="/WEB-INF/view/user/cmember.jsp"/>

</tiles:insert>

Cmember.jsp:

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib uri= "http://java.sun.com/jstl/core" prefix="c" %>

<!DOCTYPE html>

<form method="post" action="member.do">

<img src='<c:url value="/a/cc.jpg"/>'<br>

<table border="2" cellspacing="5">

<tr>

<td>Name:</td><td><input type="text" name="name"/></td>

</tr>

<tr>

<td>Email ID:</td><td><input type="text" name="emailid"/></td>

</tr>

11PGMCAOO869 Page 71
<tr>

<td>ID:</td><td><input type="text" name="id"/></td>

</tr>

<tr>

<td>Password:</td><td><input type="password" name="password"/></td>

</tr>

<tr>

<td>City<td><select name="city"/>

<option value="unkown">---select---</option>

<option value="Jharkhand">Jharkhand</option>

<option value="bihar">Bihar</option>

<option value="mumbai">Mumbai</option>

<option value="kolkata">Kolkata</option>

<option value="">Banglore</option></td>

</select>

</tr>

<tr>

<td>Nationality<td><select name="nationality"/>

<option value="unkown">---select---</option>

<option value="India">India</option>

11PGMCAOO869 Page 72
<option value="pakistan">Pakistan</option>

<option value="america">America</option>

<option value="paris">Paris</option>

<option value="southafrica">South Africa</option>

</select></td>

</td>

</tr>

<tr>

<td>Gender:</td><td><select name="gender"/>

<option value="unkown">---select---</option>

<option value="Female">Female</option>

<option value="male">Male</option>

</select>

</td>

</tr>

<tr>

<td>Occuption<td><select name="occuption"/>

<option value="unkown">---select---</option>

<option value="Programmer">Programmer</option>

<option value="Analyst">Analyst</option>

11PGMCAOO869 Page 73
<option value="Designer">Designer</option>

<option value="business">Business</option>

<option value="other">Other</option>

</select></td>

</td>

</tr>

<tr>

<td>Book Issue:</td>

<td><select name="date"/>

<option value="unkown">---select---</option>

<option value="1">1</option>

<option value="2">2</option>

<option value="3">3</option>

<option value="4">4</option>

<option value="5">5</option>

<option value="6">6</option>

<option value="7">7</option>

<option value="8">8</option>

<option value="9">9</option>

</select>

11PGMCAOO869 Page 74
<select name="month"/>

<option value="unkown">---select---</option>

<option value="january">Jan</option>

<option value="february">Feb</option>

<option value="march">March</option>

<option value="april">April</option>

<option value="May">May</option>

<option value="June">June</option>

<option value="july">July</option>

<option value="august">Aug</option>

<option value="september">Sep</option>

<option value="october">Oct</option>

<option value="November">Nov</option>

<option value="december">Dec</option>

</select>

<select name="year">

<option value="unkown">---select---</option>

<option value="2011">2011</option>

<option value="2012">2012</option>

<option value="2013">2013</option>

11PGMCAOO869 Page 75
<option value="2014">2014</option>

</select>

</td>

</tr>

<tr>

<td>Book Return:</td>

<td><select name="date"/>

<option value="unkown">---select---</option>

<option value="1">1</option>

<option value="2">2</option>

<option value="3">3</option>

<option value="4">4</option>

<option value="5">5</option>

<option value="6">6</option>

<option value="7">7</option>

<option value="8">8</option>

<option value="9">9</option>

</select>

<select name="month"/>

<option value="unkown">---select---</option>

11PGMCAOO869 Page 76
<option value="january">Jan</option>

<option value="february">Feb</option>

<option value="march">March</option>

<option value="april">April</option>

<option value="May">May</option>

<option value="June">June</option>

<option value="july">July</option>

<option value="august">Aug</option>

<option value="september">Sep</option>

<option value="october">Oct</option>

<option value="November">Nov</option>

<option value="december">Dec</option>

</select>

<select name="year"><option value="unkown">---select---</option>

<option value="2011">2011</option>

<option value="2012">2012</option>

<option value="2013">2013</option>

<option value="2014">2014</option>

</select>

11PGMCAOO869 Page 77
</td>

</tr>

<tr>

<td>Fine:</td><td><select name="fine"/>

<option value="unkown">---select---</option>

<option value="paid">Paid</option>

<option value="dues">Dues</option>

</select>

</td>

</tr>

<tr>

<td><input type="submit" value="Submit"/></td>

</tr>

</table>

</form>

Model:loginDAO

public model.membercon membercon(String name,String city)

membercon m=null;

try

11PGMCAOO869 Page 78
{

con=getCon();

PreparedStatement pst=con.prepareStatement("select * from bookdetail where name=? and


city=?");

pst.setString(1,name);

pst.setString(2,city);

ResultSet res=pst.executeQuery();

res.next();

m= new membercon(res.getInt(1),res.getString(2),res.getString(3),res.getString(4),

res.getString(5),res.getString(6),res.getString(7),res.getString(8));

con.close();

catch(Exception ex)

System.out.println("error............"+ex.getMessage());

return m;

Model:membercon.java

Package model;

public class membercon {

11PGMCAOO869 Page 79
private String name;

private String emailid;

private String id;

private String city;

private String nationality;

private String gender;

private String occupation;

private String bookissue;

private String bookreturn;

public membercon(String name, String emailid, String id, String city, String nationality, String
gender, String occupation, String bookissue, String bookreturn) {

this.name = name;

this.emailid = emailid;

this.id = id;

this.city = city;

this.nationality = nationality;

this.gender = gender;

this.occupation = occupation;

this.bookissue = bookissue;

this.bookreturn = bookreturn;

11PGMCAOO869 Page 80
membercon(int aInt, String string, String string0, String string1, String string2, String string3,
String string4, String string5) {

throw new UnsupportedOperationException("Not supported yet."); //To change body of


generated methods, choose Tools | Templates.

public String getName() {

return name;

public void setName(String name) {

this.name = name;

public String getEmailid() {

return emailid;

public void setEmailid(String emailid) {

this.emailid = emailid;

public String getId() {

return id;

11PGMCAOO869 Page 81
public void setId(String id) {

this.id = id;

public String getCity() {

return city;

public void setCity(String city) {

this.city = city;

public String getNationality() {

return nationality;

public void setNationality(String nationality) {

this.nationality = nationality;

public String getGender() {

return gender;

public void setGender(String gender) {

this.gender = gender;

11PGMCAOO869 Page 82
public String getOccupation() {

return occupation;

public void setOccupation(String occupation) {

this.occupation = occupation;

public String getBookissue() {

return bookissue;

public void setBookissue(String bookissue) {

this.bookissue = bookissue;

public String getBookreturn() {

return bookreturn;

public void setBookreturn(String bookreturn) {

this.bookreturn = bookreturn;

11PGMCAOO869 Page 83
Membersuccess.jsp

<%@page import="model.membercon"%>

<%@page import="model.LoginDAO"%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<!DOCTYPE html>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>JSP Page</title>

</head>

<body>

<h1>Hello World!</h1>

</body>

</html>

<%

String name=request.getParameter("name");

String city=request.getParameter("city");

LoginDAO d= new LoginDAO();

membercon m=d.getmembercon(name,city);

out.println("<ul>");out.println("<li>"+m.getName()+"....... "+m.getEmailid()+"............"

11PGMCAOO869 Page 84
+ m.getId()+"......"+m.getCity()+"......."+m.getNationality()+"........"

+m.getGender()+"......."+m.getOccupation()+"........"+m.getBookissue()
+"....."+m.getBookreturn()+"</li>");

out.println("</ul>");

out.println("<a href='login.jsp'>Login Page</a>");

%>

ABOUT US:Give the detail about library system

11PGMCAOO869 Page 85
Aboutus.jsp:

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>

11PGMCAOO869 Page 86
<tiles:insert page="/WEB-INF/view/layout/layoutPage.jsp">

<tiles:put name="subTitle" value="About Us"/>

<tiles:put name="body" value="/WEB-INF/view/user/caboutus.jsp"/>

</tiles:insert>

Caboutus.jsp:

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib uri= "http://java.sun.com/jstl/core" prefix="c" %>

<form method="post" action="aboutus.do">

<img src='<c:url value="/a/about.jpg"/>'

<font color="blue"><b>

<p style="background-color: yellowgreen">"The projectOnline Library Management


Systemis developed in JSP,

which mainly focuses on basic operations in a library like adding new member,

new books, and updating new information,

searching books and members and facility to issue and return books.

Using this web application user can make the booking of books online

and can look for the book either it is available in library or not.</font></b><br></p>

<u color="black"><b>Purpose:</b></u><br>

<font color="green">

1. It provides "better and efficient" service to members.<br>

2. Reduce the workload of librarian.<br>

11PGMCAOO869 Page 87
3. Faster retrieval of information about the desired book.<br>

4. Provide facility for proper monitoring reduce paper work

and provide data security.<br>

5. All details will be available on a click for both user and librarian.</font><br>

<table border="3" cellspacing="5">

<p style="background-color: greenyellow">BookDetail:<br></p>

<tr>

<td>Computer</td>

<td><a href="pdf/c++.pdf">View</a>

</tr>

<tr>

<td>Science</td>

<td><a href="pdf/se.pdf">View</a>

</tr>

<tr>

<td>Commerce</td>

<td><a href="pdf/MST.pdf">View</a>

</tr>

<tr>

<td>Arts</td>

11PGMCAOO869 Page 88
<td><a href="pdf/algo.pdf">View</a>

</tr>

<tr>

<td>NewsPaper</td>

<td><a href="pdf/ajax.pdf">View</a>

</tr>

<tr>

<td>Magzine</td>

<td><a href="pdf/jsp.pdf">View</a>

</tr>

</table>

11PGMCAOO869 Page 89
BOOK DETAIL:Give the detail about books

11PGMCAOO869 Page 90
Bookdetail.jsp:

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>

<tiles:insert page="/WEB-INF/view/layout/layoutPage.jsp">

<tiles:put name="subTitle" value="Book Detail"/>

<tiles:put name="body" value="/WEB-INF/view/user/cbookdetail.jsp"/>

</tiles:insert>

Cbookdetail.jsp:

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib uri= "http://java.sun.com/jstl/core" prefix="c" %>

11PGMCAOO869 Page 91
<!DOCTYPE html>

<form method="post" action="bookdetail.do">

<img src='<c:url value="/a/bookdetail.jpg"/>'<br>

<table border="2" cellspacing="5">

<tr>

<td>Subject:</td><td><input type="text" name="subject"/></td>

</tr>

<tr>

<td>BookName:</td><td><input type="text" name="bookname"/></td>

</tr>

<tr>

<td>ID:</td><td><input type="text" name="id"/></td>

</tr>

<tr>

<td>Author:</td><td><input type="password" name="author"/></td>

</tr>

<tr>

<td>Edition:</td><td><input type="text" name="edition"/></td>

</tr>

<tr>

11PGMCAOO869 Page 92
<td>Publisher:</td><td><input type="text" name="publisher"/></td>

</tr>

<tr>

<td>Book Issue:</td>

<td><select name="date"/>

<option value="unkown">---select---</option>

<option value="1">1</option>

<option value="2">2</option>

<option value="3">3</option>

<option value="4">4</option>

<option value="5">5</option>

<option value="6">6</option>

<option value="7">7</option>

<option value="8">8</option>

<option value="9">9</option>

</select>

<select name="month"/>

<option value="unkown">---select---</option>

<option value="january">Jan</option>

<option value="february">Feb</option>

11PGMCAOO869 Page 93
<option value="march">March</option>

<option value="april">April</option>

<option value="May">May</option>

<option value="June">June</option>

<option value="july">July</option>

<option value="august">Aug</option>

<option value="september">Sep</option>

<option value="october">Oct</option>

<option value="November">Nov</option>

<option value="december">Dec</option>

</select>

<select name="year"><option value="unkown">---select---</option>

<option value="2011">2011</option>

<option value="2012">2012</option>

<option value="2013">2013</option>

<option value="2014">2014</option>

</select>

</td>

</tr>

<tr>

11PGMCAOO869 Page 94
<td>Book Return:</td>

<td><select name="date"/><option value="unkown">---select---</option>

<option value="1">1</option>

<option value="2">2</option>

<option value="3">3</option>

<option value="4">4</option>

<option value="5">5</option>

<option value="6">6</option>

<option value="7">7</option>

<option value="8">8</option>

<option value="9">9</option>

</select>

<select name="month"/><option value="unkown">---select---</option>

<option value="january">Jan</option>

<option value="february">Feb</option>

<option value="march">March</option>

<option value="april">April</option>

<option value="May">May</option>

<option value="June">June</option>

<option value="july">July</option>

11PGMCAOO869 Page 95
<option value="august">Aug</option>

<option value="september">Sep</option>

<option value="october">Oct</option>

<option value="November">Nov</option>

<option value="december">Dec</option>

</select>

<select name="year">

<option value="unkown">---select---</option>

<option value="2011">2011</option>

<option value="2012">2012</option>

<option value="2013">2013</option>

<option value="2014">2014</option>

</select>

</td>

</tr>

<tr>

<td><a href="view.jsp">View</a></td>

<td><a href="purchase">Purchase</a></td>

</tr>

<tr>

11PGMCAOO869 Page 96
<td><input type="submit" value="Submit"/></td>

</tr>

</table>

</form>

11PGMCAOO869 Page 97
CONTACT US: Any query submit this form

11PGMCAOO869 Page 98
Contactus.jsp:

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>

<tiles:insert page="/WEB-INF/view/layout/layoutPage.jsp">

<tiles:put name="subTitle" value="Contact Us"/>

<tiles:put name="body" value="/WEB-INF/view/user/ccontactus.jsp"/>

</tiles:insert>

Ccontactus.jsp:

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib uri= "http://java.sun.com/jstl/core" prefix="c" %>

<!DOCTYPE html>

<form method="post" action="contactus.do">

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>About Us</title>

</head>

<body>

<div style="position: absolute;left: 100;top: 100;width: 200px;height: 200px;"><img


src='<c:url value="/a/ContactUs.png"/>'</div>

11PGMCAOO869 Page 99
<div style="position: absolute;left: 700px;top: 30px;width: 200px;height: 300px;"><b><font
color='blue' size='5'><u>SWATI KUMARI</u><br><div>

swatikumari01g@gmail.com<br>

8797446883<br>

ST.XAVIER'S COLLEGE,RANCHI<br></b>

</body><br><br><br>

<table border='0' cellapacing='5'>

Leave a Reply:

<tr>

<td>Name:</td>

<td><input type="text" name='name'></td>

</tr>

<tr>

<td>Email ID:</td>

<td><input type="text" name='emailid'></td>

</tr>

<tr>

<td>Comment:</td>

<td><input type="text" name='comment'></td>

</tr>

<tr>

11PGMCAOO869 Page 100


<td><input type="submit" value='Submit'></td>

</tr>

</table>

</html>

11PGMCAOO869 Page 101


CONCLUSION

The application is designed using Java Server Pages, Java Beans, and SQL Server 2005 database.
In order to ensure the quality of software, all software engineering concepts, including test
cases had implemented. This has been developed by considering all the needs of the
Examination System and by thorough interaction with the users of the system. The refined
version facilitates to capture photographs and provides better communication services through
file uploads and news. The functionality of this system can be extended by providing services
like status reports and statistical data maintenance, proper interface designs to OMR and OCR
readers, Remuneration bill processing. The main aim of project is providing highly relevant
result in short period of time. Speed of searching of documents and relevance of documents
can be increase by improving algorithm. Speed and relevance depends on algorithms.

11PGMCAOO869 Page 102


SCOPE

The system provides a number of services, which enhance the automated process, and provides
better service management web enabled applications. In addition, provides the user with an
interface that is intuitive and easy to use and employs most user-friendly features. The scope of
project is not having end. Scope is improving searching speed and relevance. We can add
advance searching and custom searching to this project.

11PGMCAOO869 Page 103


BIBLIOGRAPHY

1) Information Retrieval System: JSP COMPLETE REFERENCE(PHIL HANNA)

2) The Programming Language of SQL Ivan Bayross.


For Database concepts

Digital Library: http://egranthalaya.nic.in

National Library: www.nationallibrary.gov.in

American Library Association: http://www.ala.org

Booklist: The digital counterpart to the American Library Associations Booklistmagazine


complete with reviews and more. http://www.ala.org/booklist/index.html

11PGMCAOO869 Page 104

You might also like