Sie sind auf Seite 1von 40

1.

INTRODUCTION
1.1 ABOUT THE PROJECT
This project is aimed at developing an online application for placement dept. of college. The
system is an online application that can be accessed throughout the organization and outside
as well with proper login provided. This system can be used as an application for the PO
(placement officer) of the college to manage the student information with regards to
placements. Students logging should be able to upload there info in form of CV. Students
logging should be able to upload their information in the form of a Cv. Visitors/company
representatives logging in may also access/search any information put up by students.

1.2 OBJECTIVE
This product is aimed at developing an online application for placement dept.
of college. The system is an online application that can be accessed throughout the
organization and outside as well with proper login provided. This system can be used as an
application for the PO (placement officer) of the college to manage the student information
with regards to placements. Students logging should be able to upload there info in form of
CV. Students logging should be able to upload their information in the form of a Cv.
Visitors/company representatives logging in may also access/search any information put up
by students. The admin has full access to the database and manages the information. Students
can also apply for the jobs which they want to. Placement officer is registered by the admin.
Students are registered by the placement officer. The company which has registered itself for
the placements is valid or not is checked by the admin.
PROJECT ANALYSIS
This application consists of 6 modules in it:
 STUDENT
 COMPANY DETAILS
 PLACEMENT OFFICER
 JOB SEARCH
 ADMINISTRATOR
 REPORT

1
Module I: Student
This module contains details about students like name, id, email, skill, details etc.
Students can upload their CV’s.
They can update their personal details, skill details and CV.

Module II: Company Details


A company can register itself
Here company releasing the primary skills, experience, and no of vacancies, opening date and
closing date
There will be a list of company details visiting, last visited, eligibility details and mode of
exams
There will placement record details of all batches

Module III: Placement Officer


Gather information on local employment opportunities
Maintain information on outcomes achieved

Module IV: Job Search


This module allows us to search for the jobs based on the registered companies in the system

Module V: Administrator
The administrator module having all the privileges about this entire project
He can delete, and modify the details about student, company, etc

Module VI: Reports


Generate reports as per requirement

2
2 SYSTEM ANALYSIS
2.1 EXISTING SYSTEM
The application form is handed personally to the candidate by placement dept. The
candidate submits the filled in hand to the placement dept,with resume. The placement dept,
then forwards it to the company

Disadvantages
Lot of time is taken as the work is done manually. The application is filled by the candidate
personally then submitted to placement dept. the dept. then digitizes the records
Mistakes might creep in as the work is done manually.
Searching time is more in this. As the work is done manually searching time is more
Candidates cannot rectify there mistakes
A lot of paperwork is required in this.

2.2 PROPOSED SYSTEM


Developing an online application that can accessed throughout organization and outside as
well with proper login provided students logging should be able to upload there information
in form of a cv.
Advantages
Searching time is less
Modification and updating can be done easily as the details are stored in database.
Less chance of the mistakes creeping in
Candidates can login and see there details and also results of the placements
Companies can easily register themselves and can see the candidates details.
2.3 SCOPE OF THE PROJECT
This system can be used as an application for the PO (placement officer) of the
college to manage the student information with regards to placements. Students logging
should be able to upload there info in form of CV. Students logging should be able to upload
their information in the form of a Cv. Visitors/company representatives logging in may also
access/search any information put up by students.

3
2.4 MODULES DESCRIPTION
There are 6 modules in it:
 STUDENT
 COMPANY DETAILS
 PLACEMENT OFFICER
 JOB SEARCH
 ADMINISTRATOR
 REPORT
The above modules comprises the whole system.
STUDENT
 This contains student information. Example name, id, email, etc.
 Student can upload their resumes.
 The student can update or modify their personal information.
 The placement officer registers the student and provides a user name and password.
 They can search for jobs and even apply.
 They can view placement details.

COMPANY
 Any company can register itself
 The companies can register and check their status that is if approved or not
 They can post a job
 The placement officer can also inform students through this
 They can view company details
 This helps the students to know about company details, eligibility criteria and mode of
exam
 It makes easy for both the student and company when it comes to placements as it is
very clear, what the company wants.

PLACEMENT OFFICER
 Gather information on local employment opportunities
 Maintains information on outcomes achieved
 Placement officer uploads the student information and verifies the company

4
 Placement officer enter placement record details
 The PO keeps a track of everything, no of companies joined, no of students applied
for job, etc.
 He also informs students about the placements
JOB SEARCH
 The student can apply for the search as per the skills possessed by him/her
 The PO can also use this

ADMINISTRATOR
 Admin has control over the database
 Admin is the controller of the whole system
 Admin gets the additional privileges
 Admin register a PO and can delete a student details
 The admin can view company details
 Admin can also view job details
 Admin can view student details also

REPORTS
 Reports are generated for each module.
2.5 SYSTEM CONFIGURATION
SOFTWARE REQUIREMENTS
Operating System : Windows XP Service Pack2
Technologies : Java/J2EE (Servlets, JSP, JDBC)
Web Server : Tomcat 6.0
Database : Oracle Database 10g Express Edition
Software’s : JDK 1.6

HARDWARE REQUIREMENTS
Hardware : Pentium based systems with a minimum of p4
RAM : 256MB (Minimum)

5
3 LITERATURE OVERVIEW
Languages Used
In this project, we chose Java language for developing the code.

JAVA

Java is a programming language originally developed by James Gosling at Sun Microsystems


(which is now a subsidiary of Oracle Corporation) and released in 1995 as a core component
Sun Microsystems’ Java platform. The language derives much of its syntax from C & C++
but has a simpler object model and fewer low –level facilities. Java applications are typically
compiled to byte code (class file) that can run on any Java Virtual Machine (JVM) regardless
of computer architecture. Java is general - purpose, concurrent, class-based and object-
oriented and is specifically designed to have a few implementation dependencies as possible.
It is intended to let application developers “write once run anywhere”. Java is considered by
many as one of the most influential programming languages of the 20th century, and is widely
used from application software to web applications.

The original and reference implementation java compilers, virtual machines and class
libraries were developed by Sun from 1995. As of May 2007 in compliance with the
specification s of the Java Community Process, Sun relicensed most of its Java technologies
under the GNU General Public License. Others have also developed alternative
implementations of these Sun technologies, such as GNU compiler for Java and GNU class
path.

Principles: There were five primary goals in the creation of the Java language:

1.It should be “simple, object-oriented and familiar”.


2.It should be “robust and secure”.
3.It should be “architecture neutral and portable”.
4.It should execute with “high performance”.
5.It should be “interpreted, threaded, and dynamic”.

6
FEATURES OF JAVA

PLATFORM INDEPENDENT
The concept of Write-once-run-anywhere (known as platform independent) is
one of the important key feature of Java language that makes java as the most
powerful language. Unlike many other programming languages including C and C++
when Java is compiled, it is not compiled into platform specific machine, rather into
independent byte code. This byte code is distributed over the web and interpreted by
Java virtual Machine (JVM) on whichever platform it is being run.
SIMPLE
Java is designed to be easy to learn. If you understand the basic concept
of OOP java would be easy to master.

OBJECT ORIENTED
In java everything is an object. To be an object-oriented language, any
language must follow at least the four characteristics.
Inheritance
Inheritance is the process by which one object acquires the properties of
another object
Encapsulation
It is the mechanism of combining information & providing the abstraction.
Polymorphism
Polymorphism is the way of providing different functionality by the
functions having the same name based on the signatures of the methods.
Distributed
The widely used protocols like HTTP and FTP are developed in java.
Internet programmers can call functions on these protocols and can get
access the files from any remote machine on the internet rather than writing
codes on their local system.
Portable
The feature Write-once –run-anywhere makes the java language portable
provided that the system must have interpreter for the JVM. Java also has
the standard data size irrespective of operating system or the processor.
7
These features make the java as a portable language.
Dynamic
While executing the java program the user can get the required files
dynamically from a local drive or from a computer thousands of miles away
from the user just by connecting with the internet.
Java is considered to be more dynamic than C or C++ since it is designed to
adapt to an evolving environment. Java programs can carry extensive
amount of run-time information that can be used to verify and resolve
accesses to object on run-time.
Secure
With Java secure feature it enables to develop virus-free, tamper-free
systems. Authentication techniques are based on public-key encryption.
Performance
Java uses native code usage, and light weight process called threads. In the
beginning interpretation of byte code resulted the performance slow but the
advance version of JVM uses the adaptive and just in time compilation
technique that improves the performance.
Multithreaded
Java is also multithreaded programming language. Multithreading means a
single program has multiple threads executing independently at the same
time. Multiple threads execute instructions according to the program code in
a process or program. Multithreading works the similar way as multi
processes run on one computer. Multithreading programming is very
interesting concept in java. In multithreaded programs not even a single
thread disturbs the execution of other thread. Threads are obtained from the
pool of available ready to run threads and they run on the system CPUs.

Advantages of JAVA

1) It is open an source, so users do not have to struggle with heavy license fees each year
2) Platform independent
3) Java API’s can easily be accessed by developers
4) Java supports garbage collection, so memory management is automatic
5) Java always allocates objects on the stack

8
6) Java embraced the concept of exception specifications
7) Multi-platform support language and support for web-services
8) Using Java we can develop dynamic web applications
9) It allows you to create modular programs and reusable codes

JAVA SERVER PAGES

Java server pages are a simple but powerful technology used to generate dynamic web
pages on the server side. JSP’s are direct extension of java servlets and provide a way to
separate content generation from content presentation.

FEATURES OF JSP

Portability
Java Server Pages files can be run on any web server or web-enabled application
server that provides support for them. Dubbed the JSP engine, this support involves
recognition, translation and management of the Java Server Page lifecycle and its
interaction components.

Components
It was mentioned that the Java Server Pages architecture can include reusable Java
components. The architecture also allows for the embedding of a scripting language
directly into the Java Server Pages file. The components current supported include
Java Beans and Servlets.

Processing
A Java Server Pages file is essentially an HTML document with JSP scripting or
tags. The Java Server Pages file has extension to the server as a Java Server Pages
file. Before the page is served, the Java Server Pages syntax is parsed and processed
into a Servlet on the server side. The Servlet that is generated outputs real content in
straight HTML for responding to the client.

9
JSP 2.0

The new version of the JSP specification includes new features meant to improve
programmer productively.

Namely:

1) An Expression Language (EL) which allows developers to create Velocity-style


templates (among other things).
2) A faster /easier way to display parameter values.
3) A clearer way to navigate nested beans.

HTML

HTML, which stands for Hypertext Markup Language, is the predominant markup language
for web pages. It provides a means to create structured documents by denoting structural
semantics for text such as headings, paragraphs, lists, links, quotes and other items. It allows
images and objects to be embedded and can be used to create interactive forms. It is written
in the form of HTML elements consisting of “tags” surrounded by angle brackets within the
web page content. It can embed scripts in languages such as JavaScript which affect the
behavior of HTML web pages. HTML can also be used to include Cascading Style Sheets
(CSS) to define the appearance and layout of text and other material. The W3C, maintainer of
both HTML and CSS standards, encourages the use of CSS over explicit presentational
markup.

HTML TAGS

Basic HTML Tags:

<!-- -->specifies comments

<A>………</A>Creates hypertext links

<B>……….</B>Formats text as bold

<BIG>…….</BIG>Formats text in large font

<BODY>……</BODY>Contains all tags and text in the HTML documents

10
<CENTER>…….</CENTER>Creates text

<DD>………….</DD>Definition of a term

<DL>…………..</DL>Creates definition list

<FONT>……….</FONT>Formats text with a particular font

<FORM>……….</FORM>Encloses a fill-out form

<FRAME>……….</FRAME>Defines a particular frame in a set of frames

<H#>…………….</H#>Creates headings of different levels

<HEAD>………</HEAD>Contains tags that specify information about a document

<HR>…………</HR>Creates a horizontal rule

<HTML>………</HTML>Contains all other HTML tags

<META>……..</META>Provides meta-information about a document

<SCRIPT>………</SCRIPT>Contains client-side or server-side script

<TABLE>………</TABLE>Creates a table

<TR>………</TR>Designates a table row

Advantages

1) A HTML document is small and hence easy to send over the net. It is small
because it not include formatted information.
2) HTML is platform independent.
3) HTML tags are not case-sensitive.

JDBC

JDBC is an API for the java programming language that defines how a client may access
a database. It provides methods for querying and updating data in a database. JDBC is
oriented towards relational databases.

11
JDBC was first introduced in the Java2 Platform, Standard Edition, version 1.1(J2SE),
together with a reference implementation JDBC-to-ODBC bridge, enabling connections to
any ODBC-accessible data source in the JVM host environment.

Functionality

JDBC allows multiple implementations to exist and be used by the same application. The
API provides a mechanism for dynamically loading the correct java packages and registering
them with the JDBC Driver Manager. The Driver Manager is used as a connection factory for
creating JDBC connections.

JDBC connections support creating executing statements. These may be update statements
such as SQL’s CREATE, INSERT, UPDATE and DELETE or they may be query statements
such as SELECT. Additionally, stored procedures may be invoked through a JDBC
connection. JDBC represents statements using one of the following classes:

 Statement – the statement is sent to the database server each and every time.
 Prepared Statement- the statement is cached and then the execution path is pre
determined on the database server allowing it to be executed multiple times in an
efficient manner.
 Callable Statement-used for executing stored procedures on the database.

Update statements such as INSERT, UPDATE and DELETE return an update count that
indicates how many rows were affected in the database. These statements do not return any
other information.

Query statements return a JDBC row result set. The row result set is used to walk over the
result set. Individual columns in a row are retrieved either by name or by column number.
There may be any number of rows in the result set. The row result set has metadata that
describes the names of the columns and their types.

JDBC Drivers

JDBC drivers are client-side adapters (installed on the client machine, not on the server) that
convert requests from java programs to a protocol that the DBMS can understand.

JDBC drivers fall under four categories:


12
 TYPE-1
 TYPE-2
 TYPE-3
 TYPE-4

Type 1 driver- JDBC-ODBC Bridge

The JDBC type 1 driver, also known as the JDBC-ODBC Bridge, is a database driver
implementation that employs the ODBC driver to connect the database. The driver converts
JDBC method calls into ODBC function calls.

This driver leads to other installation dependencies; for example, ODBC must be installed on
the computer having the driver and the database must support an ODBC driver. The use of
this driver is discouraged if the alternative of a pure-Java driver is available.

13
Functions
 Translates query obtained by JDBC into corresponding ODBC query, which is then
handled by the ODBC driver.
 Sun provides a JDBC-ODBC Bridge driver. Sun.jdbc.odbc.JdbcDriver. This driver is
native code and not Java, and is closed source.
 Client -> JDBC Driver -> ODBC Driver -> Database
 There is some overhead with the translation work to go from JDBC to ODBC.

Advantages
 Almost any database, for which ODBC driver is installed, can be accessed.
 A type 1 driver is easy to install.

Disadvantages
 The driver is platform-dependent as it makes use of ODBC which is in turn depends on
native libraries of the underlying operating system the JVM is running upon.
 This technology isn’t suitable for a high-transaction environment.
 This driver is non-portable given the binding between the driver and platform.
 These drivers also don’t support the complete Java command set and are limited by the
functionality of the ODBC driver.

Type 2 Driver – Native – API Driver specification


The JDBC type 2 drivers, also known as the Native –API driver, are a database driver
implementation that uses the client-side libraries of the database. The driver converts JDBC
method calls into native calls of the database API.

14
The type 2 driver is not written entirely in Java as it interfaces with non-Java code that makes

the final database calls. The driver is compiled for use with the particular operating system.
For platform interoperability, the Type 4 driver, being a full-Java implementation, is
preferred over this driver.
However the type 2 driver provides more functionality and better performance than the type 1
driver as it does not have the overhead of additional ODBC function calls.

Advantages
1. Better performance than Type 1 Driver(JDBC-ODBC Bridge)
2. Provides fastest performance than all 3 drivers as it calls native APIs ( MySQL,
Oracle etc.)

Disadvantages
1.The vendor client library has to be installed on the client machine.
2.Cannot be used in web-based application due to the client side software needed.
3.Not all databases have client side library.
4.This server is platform independent.
5.This driver supports all java applications except Applets.

15
Type 3 Driver – Network – Protocol Driver
The JDBC type 3 driver, also known as the Pure Java Driver for Database Middleware, is a
database driver implementation which makes use of a middle tier between the calling
program and the database.
The middle-tier (application server) converts JDBC calls directly or indirectly into the
vendor-specific database protocol.

This differs from the type 4 driver in that the protocol conversion logic resides not at the
client, but in the middle-tier. Like type 4 drivers, the type 3 driver is written entirely in Java.
The same driver can be used for multiple databases. It depends on the number of databases
the middleware has been configured to support. The type 3 driver is platform –independent as
the platform-related differences are taken care by the middleware. Also, making use of the
middleware provides additional advantages of security and firewall access.
Functions
1.Follows a three tier communication approach.
2.Can interface to multiple databases –Not vendor specific.
3.The JDBC Client driver written in Java, communicates with a middleware-net-
server using a database independent protocol, and then this net server translates this
request into database commands for that database.
4.Thus the client driver to middleware communication is database independent.
5.Client -> JDBC Driver -> Middleware-Net-Server -> Any Database.

16
Advantages
1.Since the communication between client and the middleware server is database
independent, need not be changed for a new database.
2.The Middleware Server (which can be a fully fledged J2EE Application server) can
provide typical middleware services like caching (connections, query results, and so
on), load balancing, logging, auditing etc.
3.Eg. For the above include jdbc driver features in Web logic.
 Can be used in internet since there is no client side software needed.
 At client side a single driver can handle any database. (It works provided the
middleware supports that database)

Disadvantages
1.Requires database-specific coding to be done in the middle tier.
2.An extra layer added may result in a time-bottleneck. But typically this is overcome
by providing efficient middleware services.

Type 4 Driver - Native-Protocol Driver

The JDBC type 4 driver, also known as the Direct to Database Pure Java Driver, is a database
driver implementation that converts JDBC calls directly into the vendor-specific database
protocol.
The type 4 driver is written completely in Java and hence platform independent. It is installed
inside the Java Virtual Machine of the client. It provides better performance over the type 1
and 2 drivers as it does not have the overhead of conversion of calls into ODBC or database
API calls. Unlike the type 3 drivers, it does not need associated software to work.
As the database protocol is vendor- specific, separate drivers, usually vendor-supplied, need
to be used to connect to different databases.

17
FUNCTIONS
1.Type 4 drivers are entirely written in Java that communicates directly with a
vendor’s database, usually through socket connections. No translation or middleware
layers are required, improving performance.
2.The driver converts JDBC calls into the vendor-specific database protocol so that
client application can communicate directly with the database server.
3.Completely implemented in Java to achieve platform independence.
4.Eg: include the widely used Oracle thin driver – oracle.jdbc.driver.OracleDriver
which connect to jdbc: oracle: thin URL format.
5.Client -> Native Protocol JDBC Driver -> Database server
Advantages
1.These drivers don’t translate the requests into an intermediary format(such as
ODBC ), nor do they need a middleware layer to service requests. Thus the
performance may be considerably improved.
2.All aspects of the application to database connection can be managed within the
JVM; this can facilitate easier debugging.

Disadvantages
At client side, a separate driver is needed for each database.

18
STAGES IN A JDBC PROGRAM
REGISTERING THE DRIVER

A database driver is software containing the classes and interfaces written


according to the JDBC API. Since there are several drivers available in the market, we
should first declare the driver which is going to be used for communication with the
database server in a java program.
CONNECTING TO A DATABASE

In this stage we establish the connection with a specific database through the driver
which is already registered in the previous step.
PREPARING SQL STATEMENT

We should create SQL statements in our java program using any one of the interfaces like
Statement, Prepared Statement, and Callable Statement which are available in
java.sqlpackage.
EXECUTING THE SQL STATEMENTS ON THE DATABASE

For this purpose, we can use execute Update (), execute Query (), methods of statement
Interface.
RETRIEVING THE RESULTS

The Results obtained by executing the SQL statements can be stored in an


object with the help of interfaces like Result Set.

CLOSING THE CONNECTION


We should close the connection between the Java program and the
database using close() method of connection Interface.

DATABASE
A database is a separate application that stores a collection of data. Each database has
one or more distinct APIs for creating, accessing, managing, searching and replicating
the data it holds.
Other kinds of data stores can be used, such as files on the file system or large hash
tables in memory but data fetching and writing would not be so fast and easy with those
types of systems.

19
The database used is oracle 10g.the oracle database is an object-relational database
management system produced and marketed by Oracle Corporation.
Larry Ellison and his friend’s former co-workers Bob Miner and Ed Oates started the
consultancy Software Development Laboratories (SDL) in 1997.
SDL developed the original version of the Oracle software. The name Oracle comes
from the code-name of a CIA-funded project Ellison had worked on while previously
employed by Ampex.

Terminology
Database: A database is a collection of tables, with related data.
Table: A table is a matrix with data. A table in a database looks like a simple
spreadsheet.
Column: One column (data element) contains data of one and the same kind, for
example the column postcode.
Row: A row (= tuple, entry or record) is a group of related data, for example the data of
one subscription.
Primary Key: A primary key is unique. A key value cannot occur twice in one table.
With a key you can find at most one row.
Foreign Key: A foreign key is the linking pin between two tables.
Compound Key: A compound key (composite key) is a key that consist of multiple columns,
because one column is not sufficiently unique

20
4 SYSTEM DESIGN
4.1 SYSTEM ARCHITECTURE
4.2 UML DIAGRAMS
A diagram is a graphical presentation of a set of elements, most often rendered as a
connected graph. UML includes nine such diagrams. Unified Modeling Language
(UML) is a probably the most widely known and used notation for object-oriented
methods. The Unified Modeling Language (UML) is a standard language for writing
software blueprints.

The UML may be used to visualize, specify, construct and document the artifacts. A
Modeling Language is a language whose vocabulary and rules focus on the conceptual
and the physical and the physical representation of a system. Modeling is the designing
of the software applications before coding. It is an essential part of large software
projects, and helpful to medium and even small projects as well. A model plays an
analogous role in software development project’s success can assure themselves that
business functionality is complete and correct. Care should be taken that end-user’s
needs are met.
The underlying premise of UML is that no one diagram can capture the different
elements of a system at different points of time in the software life cycle of a system.

The UML diagrams are as follows:


 Use case Diagram
 Class Diagram
 Activity Diagram

Use Case Diagram: The use case diagram is used to identify the primary elements
and processes that form the system. The primary elements are termed as “actors” and
the processes are called as “use cases”. The use case diagram shows which actors
interact with each use case.

21
22
Class Diagram: The class diagram is used to define a detailed design of the system. It
classifies the actors into a set of interrelated classes. The relationship or association between
the classes can be either an “is-a” or “has-a” relationship. Each class in the class diagram may
be capable of providing certain functionalities. These functionalities provide by the class are
termed “methods” of the class. Apart from this, each class may have certain “attributes” that
uniquely identify the class.

ADMIN
STUDENT
+user id
+password +user id
+password
+po reg()
+student reg() +modify()
+view po details() +view()
+view company details() +view company details()
+view student() +view placmeent record()
+view job details() +view job details()
+change password() +search job()
+assign status() +apply job()
+update() +change password()

PLACEMENT OFFICER
+user id
+password COMPANY

+student reg() +user id


+view student details() +password
+view company details()
+modify details()
+add placement record()
+post a job()
+view placement record()
+view()
+view job details()
+status()
+change password()
+change password()
+manage student details()

Activity Diagram: The process flows in the system are captured in the activity diagram.
Similar to a state diagram, an activity diagram also consists of activities, actions, transitions,
initial and final states, and guard conditions.

23
ACTIVITY DIAGRAM FOR ADMIN

login

yes
admin

register student

yes
no register po

yes

view company details view job details

view po details
enter correct login details view /delete student details

no

update status rejected


yes

update company status accepted

ACTIVITY DIAGRAM FOR A PLACEMENT OFFICER

yes

Placement officer

view job details

yes
no
add/view placement record
yes

register student

view company details

enter correct login details


view student details

24
ACTIVITY DIAGRAM FOR A COMPANY

Company

register

no
register wait for status updation

yes

view/modify company details


check status
enter correct login details

post a job

CACTIVITY DIAGRAM FOR A STUDENT

Student apply for job

yes

ye
no view placement

yes
yes

view/search job
view/modify student details

enter login details correctly

25
DATABASE DESIGN
TABLES

 Tables are logical structures maintained by the database manager. Tables are made up
of columns and rows.
 At the intersection of every column and row is a specific data item called a value. A
column is a set of values of the same type or one of its subtypes. A row is a sequence
of values arranged so that the nth value is a value of the nth column of the table.
 When designing tables, you need to be familiar with certain concepts, determine the
space requirements for tables and user data, and determine whether you will take
advantage of certain features, such as space compression and optimistic locking.

CMPREG

Fieldname Data Type Constraint


cid Varchar(50) Primary key
Hrname Varchar(50)
Companyname Varchar(50)
Established Varchar(50)
Vacancies Number(3)
Rating Varchar(50)
Phone Number(12)
Email Varchar(50)
Address Varchar(50)
City Varchar(50)
State Varchar(50)
Country Varchar(50)
Pincode Number(6)
Password Varchar(50)
Cpassword Varchar(50)
Website Varchar(50)
Status Varchar(50)

26
STUDREG

Fieldname Data Type Constraint


Sid Varchar(50) Primary key
Fname Varchar(50)
Lname Varchar(50)
Dob Varchar(50)
Batch Varchar(50)
Dept Varchar(50)
Sscname Varchar(50)
Sscgrp Varchar(50)
Sscagg Number(2)
Intername Varchar(50)
Intergrp Varchar(50)
Interagg Number(2)
Degreename Varchar(50)
Degreegrp Varchar(50)
Degreeagg Number(2)
Email Varchar(50)
Phoneno Number(12)
Address Varchar(50)
City Varchar(50)
State Varchar(50)
Pincode Number(6)
Password Varchar(50)
Cpassword Varchar(50)
Filename Varchar(50)
Filepath Varchar(50)

27
ADDPLACEMENT

Fieldname Data type constraint


cid Varchar(50) Foreign key
Sid Varchar(50) Foreign key
Sname Varchar(50)
Dept Varchar(50)
Pack Varchar(50)
Jobcode Varchar(50)
Batch Varchar(50)
Stdappeared Number(3)
Stdselected Number(3)

JOBAPPLIFORM
Fieldname Data Type Constraint
Sid Varchar(50) Foreign key
Fname Varchar(50)
Lname Varchar(50)
Dob Varchar(50)
Batch Varchar(50)
Technologies Varchar(50)
Sscname Varchar(50)
Sscgrp Varchar(50)
Sscagg Number(2)
Intername Varchar(50)
Intergrp Varchar(50)
Interagg Number(2)
Degreename Varchar(50)
Degreegrp Varchar(50)
Degreeagg Number(2)
Email Varchar(50)

28
Phoneno Number(12)
Address Varchar(50)
City Varchar(50)
State Varchar(50)
Pincode Number(6)
Jobcode Varchar(50)

JOBPOSTING

Fieldname Data Type Constraint


cid Varchar(50) Foreign key
Tech Varchar(50)
Pos Varchar(50)
Elig Varchar(50)
Agg Varchar(50)
Pack Varchar(50)
Loc Varchar(50)
Vac Number(3)
Jobdesc Varchar(50)
Jobcode Number(6)

POREG

Fieldname Data Type Constraint


Pid Varchar(50) Primary key
Fname Varchar(50)
Lname Varchar(50)
Dob Varchar(50)
Doj Varchar(50)
Experience Varchar(50)

29
Qualification Varchar(50)
Email Varchar(50)
Phoneno Number(12)
Address Varchar(50)
City Varchar(50)
State Varchar(50)
Pincode Number(6)
Password Varchar(50)
Cpassword Varchar(50)

30
5 SAMPLE CODE
5.1 CODING
<%--
Document : MAIN HOME
Created on : Jul 10, 2015, 6:14:09 PM
Author :Sita
--%>

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


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
<style>
body {
background-image: url("ss.jpg");
color="BLUE";
}
</style>
</head>
<body>
<center><font color="#EBEBEB">
<h1>CAMPUS SELECTION PROCEDURE</h1>
</font>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"


"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
<head>
31
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>css3menu.com</title>
<!-- Start css3menu.com HEAD section -->
<link rel="stylesheet" href="MAIN HOME_files/css3menu1/style.css"
type="text/css" /><style type="text/css">._css3m{display:none}</style>
<!-- End css3menu.com HEAD section -->
</head>
<body style="background-color:#EBEBEB">
<!-- Start css3menu.com BODY section -->
<ul id="css3menu1" class="topmenu">
<li class="topfirst"><a href="MAIN HOME.jsp" style="height:32px;line-
height:32px;"><img src="MAIN HOME_files/css3menu1/blue_circle - home.png"
alt=""/>HOME</a></li>
<li class="topmenu"><a href="loginform.jsp" style="height:32px;line-
height:32px;"><img src="MAIN HOME_files/css3menu1/blue_circle - key.png"
alt=""/>LOGIN</a></li>
<li class="topmenu"><a href="NEWCOMPANY REG.jsp" style="height:32px;line-
height:32px;"><img src="MAIN HOME_files/css3menu1/blue_circle - internet.png"
alt=""/>NEW REGISTRATION</a></li>
<li class="topmenu"><a href="CHECK STATUS.jsp" style="height:32px;line-
height:32px;"><img src="MAIN HOME_files/css3menu1/blue_circle - gears.png"
alt=""/>CHECK STATUS</a></li>
<li class="toplast"><a href="ABOUT US.jsp" style="height:32px;line-
height:32px;"><img src="MAIN HOME_files/css3menu1/blue_circle - info.png"
alt=""/>ABOUT US</a></li>
</ul><p class="_css3m"><a href="http://css3menu.com/">menu css</a> by
Css3Menu.com</p>
<!-- End css3menu.com BODY section -->

</center>
</body></html>

32
6 TESTING
6.1 TESTING
The purpose of testing is to discover errors. Testing is the process of trying to discover every
conceivable fault or weakness in a work product. It provides a way to check the functionality
of components, sub-assemblies, assemblies and/or a finished product It is the process of
exercising software with the intent of ensuring that the
Software system meets its requirements and user expectations and does not fail in an
unacceptable manner. There are various types of test. Each test type addresses a specific
testing requirement.
6.2 TYPES OF TESTS
Unit Testing
Unit testing involves the design of test cases that validate that the internal program logic is
functioning properly, and that program inputs produce valid outputs. All decision branches
and internal code flow should be validated. It is the testing of individual software units of the
application .it is done after the completion of an individual unit before integration. This is a
structural testing, that relies on knowledge of its construction and is invasive. Unit tests
perform basic tests at component level and test a specific business process, application,
and/or system configuration. Unit tests ensure that each unique path of a business process
performs accurately to the documented specifications and contains clearly defined inputs and
expected results.
Integration testing
Integration tests are designed to test integrated software components to determine if they
actually run as one program. Testing is event driven and is more concerned with the basic
outcome of screens or fields. Integration tests demonstrate that although the components were
individually satisfaction, as shown by successfully unit testing, the combination of
components is correct and consistent. Integration testing is specifically aimed at exposing
the problems that arise from the combination of components.

33
Functional test
Functional tests provide systematic demonstrations that functions tested are available as
specified by the business and technical requirements, system documentation, and user
manuals.
Functional testing is centered on the following items:
Valid Input: identified classes of valid input must be
accepted.
Invalid Input: identified classes of invalid input must be
rejected.
Functions: identified functions must be exercised.
Output: identified classes of application outputs
must be exercised.
Systems/Procedures: interfacing systems or procedures must be invoked.
Organization and preparation of functional tests is focused on requirements, key functions,
or special test cases. In addition, systematic coverage pertaining to identify Business process
flows; data fields, predefined processes, and successive processes must be considered for
testing. Before functional testing is complete, additional tests are identified and the effective
value of current tests is determined.
System Test
System testing ensures that the entire integrated software system meets requirements. It
tests a configuration to ensure known and predictable results. An example of system testing is
the configuration oriented system integration test. System testing is based on process
descriptions and flows, emphasizing pre-driven process links and integration points.
White Box Testing
White Box Testing is a testing in which the software tester has knowledge of the inner
workings, structure and language of the software, or at least its purpose. It is purpose. It is
used to test areas that cannot be reached from a black box level.

34
Black Box Testing
Black Box Testing is testing the software without any knowledge of the inner workings,
structure or language of the module being tested. Black box tests, as most other kinds of tests,
must be written from a definitive source document, such as specification or requirements
document. It is a testing in which the software under test is treated, as a black box .you
cannot “see” into it. The test provides inputs and responds to outputs without considering
how the software works.
All the above discussed tests are performed and checked for the proper functioning of the
application. Debug statements are inserted and checked for unit testing of each part of the
java classes. Each activity is run separately to verify the function. The complete code is
integrated and tested for integration testing.

6.3 TEST CASES


Test Report 1
Project Name: Placement Office Automation
Module Name: Login Form
Unit Name: Username, Password
Test Result: by entering the valid id number the student or the admin or the po or the
company can log into the application and can be able to process with their respective jobs.
Test Plan (Unit/Module/Form/Integration)
Test Plan For: Placement Office Automation
Unit Id: Placement Office Automation -Login Form
Test Case Id: Username, Password
Test type: Unit Level/Form Level/Integration Level
Form Name: Login Form
Base Table: Login
Purpose: each and every user and user is provided with a unique id with which they can be
able to log into the application.
Test case description: by entering a valid id and password, the application cross checks from
the database and then allow the user or the users to get access to the application. If the login
id or password is incorrect or do not exist then it is not a valid user.
Ex-ID-Varchar (50)
Constraint-Primary Key
35
Test Data
S.NO INPUT SPECIFICATION OUTPUT SPECIFICATION
1. Column Name: Username
Valid Input: if the username is correct Valid Output: if the username and
along with user password then the form password are correct then form
will be navigated to allotted form navigation will be done

Invalid Input: if the username is incorrect Invalid Output: if the username is


then username will be reentered incorrect it will ask for enter it again
2. Column Name: Password
Valid Input: if the password is correct Valid Output: if the username and
with its username then it will checked in password are correct then it will
the database for navigating into another navigate to appropriate allotted form
form
Invalid Input: it asks to reenter the
Invalid Input: if the password is incorrect correct password if the username
then it will ask enter correct password for entered is correct.
the given username

Test Completion Criteria:


Login form will be used for allowing correct user to use the application. Every person
will be given a username and password. They can enter into and use the application after
logging in to the software with the correct username and password. The username will be
entered in the textbox given for username and password will be entered in the textbox given
for password field. Then if the user clicks on login button then it will verify with database, if
the user is appropriate user with correct password then he will allow the user to access the
application, otherwise he will not be able to access the application.
Test Report 2
Project Name: Placement Office Automation
Module Name: Placement Officer Module
Unit Name: Placement Officer ID

36
Test Result: the ID will be tested and verified. This will be used to view the registration
details of placement officer.
Test Plan (Unit/Module/Form/Integration)
Test Plan for Placement Office Automation
Unit id: Placement Office Automation
Test Case Id: placement officer id
Test Type: Unit Level Testing
Form name: Placement officer Form
Base Table: POREG
Purpose: The ID number will be used to Reterive the details of po and register student. The
ID number will be unique in the number so this will be used to differ one PO from another
PO.
Test Case Description: ID varchar(50)
Primary key
Test Data

S.No Input specification Output specification


1. Column name: ID number
Valid input: if the registration details Valid output: if the details are correct then
are correct then all the details will be the details will be stored to database for
stored in the database. future use.

Invalid input: if the registration


details with the registration number Invalid output: if the registration details
are incorrect then the details shall be are entered wrongly, then the user will
entered correctly. reenter the details carefully again.
2. Column name: officer name
Valid input: if the officer name of the Valid output: the officer name will be
vehicle will be entered correctly. inserted in the database.

Invalid input: the officer name of the


vehicle should reenter correctly. Invalid output: the officer name will not be
inserted in database.

3. Column name: address


Valid input: owner address will be Valid output: address will be inserted in
entered into database the database.

Invalid input: address will be Invalid output: address should be


reentered correctly. reentered.

37
4. Column name: date of birth
Valid input: date of birth will be Valid output: date of birth will be inserted
entered into database in the database.

Invalid input: date of birth will Invalid output: date of birth should be
reentered correctly. reentered correctly.
5. Column name: address
Valid input: the maker address will Valid output: the address will be available
be entered correctly in database. in database.

Invalid input: the address will be Invalid output: the maker address should
reentered correctly. be entered correctly.

Test Completion Criteria

The ID number will be used as primary key to identify each vehicle uniquely. Based
on the ID number we can find the Placement Officer details and register student.

38
7 OUTPUT SCREENS

8 CONCLUSION
8.1 CONCLUSION
The package was designed in such a way that future modifications can be done easily. The
following conclusions can be deduced from the development of the project.

 Automation of the entire system improves the efficiency


 It provides a friendly graphical user interface which proves to be better when
compared to the existing system.
 It gives appropriate access to the authorized users depending on their permissions.
 It effectively overcomes the delay in communications.
 Updating of information becomes so easier.
 System security, data security and reliability are the striking features.
 The System has adequate scope for modification in future if it is necessary.

This application avoids the manual work and the problems concern with it. It is an easy and
fast way to access the updated information.

39
9 BIBLIOGRAPHY

Book References
The Complete Reference Java Fourth Edition

Websites References
www.java.com
www.oracle10g.com
www.google.com

Technical Publication References


Web technologies

40

Das könnte Ihnen auch gefallen