85
I I NFORMATION NFORMATION T T ECHNOLOGY ECHNOLOGY C C ENTRE ENTRE ONLINE TESTING SYSTEM OF ITC REPORT REPORT BY BY SAJJAD AHMED SOOMRO 2K5-IT-119 MUHAMMAD NOOR 2K5-IT-93 SYED MUBASHAR KAZMI 2K5-IT-79 MIR ASADULLAH TALPUR 2K5-IT-76 ZUHAIB HASSAN QURESHI 2K5-IT-142 RIAZ AHMED LASHARI 2K5-IT-116 Muhammad Zaman 2K5-IT-102 Supervised By Supervised By MIR SAJJAD HUSSAIN TALPUR

Testing System Thesis

Embed Size (px)

Citation preview

IINFORMATIONNFORMATION T TECHNOLOGYECHNOLOGY

CCENTREENTRE

ONLINE TESTING SYSTEM OF ITC

REPORTREPORT

BYBYSAJJAD AHMED SOOMRO 2K5-IT-119

MUHAMMAD NOOR 2K5-IT-93

SYED MUBASHAR KAZMI 2K5-IT-79

MIR ASADULLAH TALPUR 2K5-IT-76

ZUHAIB HASSAN QURESHI 2K5-IT-142

RIAZ AHMED LASHARI 2K5-IT-116

Muhammad Zaman 2K5-IT-102

Supervised BySupervised By

MIR SAJJAD HUSSAIN TALPUR

A REPORT SUBMITTED THROUGH THE INFORMATION TECHNOLOGY CENTRESINDH AGRICULTURAL UNIVERSITY TANDOJAM

IN CONNECTION WITH THE PARTIAL FULFILLMENT OF THE REQUIREMENTSFOR THE FINAL YEAR RESEARCH PROJECT

2009-2010

IINFORMATIONNFORMATION T TECHNOLOGYECHNOLOGY C CENTREENTRE

SS INDHINDH A AGRICULTURALGRICULTURAL U UNIVERSITYNIVERSITY ,,

TTANDOJAMANDOJAM

CertificateCertificateThis is to certify that Mr. Sajjad Ahmed, Muhammad Noor,

Syed Mubashar Kazmi, Mir Asadullah Talpur , Zuhaib

Hassan , Riaz Ahmed & Muhammad Zaman .

In partial fulfillment for the degree of BSIT (Hons.) from

Information Technology Centre, Sindh Agricultural University,

Tandojam, he has submitted report on Online Testing System

of ITC, during the year 2009-2010.

This report is up to the standards of BSIT (Hons.)

syllabus of Sindh Agricultural University, Tandojam.

DIRECTOR DR.ALTAF SIYAL

Director

Information Technology Centre,

Sindh Agriculture University,

Tandojam.

SUPERVISOR MIR SAJJAD HUSSAIN TALPUR

Lecturer

Information Technology Centre,

Sindh Agriculture University,

Tandojam.

DATE OF PROJECT DEFENCE _______________________ 2010

RESEARCH CERTIFICATE I_____________________________________________________________________

IINFORMATIONNFORMATION T TECHNOLOGYECHNOLOGY C CENTREENTRE

SS INDHINDH A AGRICULTURALGRICULTURAL U UNIVERSITYNIVERSITY,,

TTANDOJAMANDOJAM

Research CertificateResearch Certificate

This is to certify that the present project work

entitled “Online Testing System of ITC” embodied in this report

has been carried out by Mr. Sajjad Ahmed, Muhammad

Noor, Syed Mubashar Kazmi, Mir Asadullah Talpur ,

Zuhaib Hassan , Riaz Ahmed & Muhammad Zaman.

during the academic year 2009-2010 as a final project.

Dated: ____________ 2010 PROJECT SUPERVISOR

MIR SAJJAD HUSSAIN TALPUR

Lecturer

Information Technology Centre

Sindh Agricultural University,

Tandojam

DEDICATION II_____________________________________________________________________

DedicationDedication

This report is dedicated to our parents who helped us in all aspect

of life, encouraged us to achieve our goals and did their best to

uplift us to the heights of an ideal life.

AND

Is dedicated to ITC where we grow, learn not only textual knowledge but also purpose of life and became from unripe fruit to ripe one.

First of all we are thankful to almighty ALLAH who gave us

wisdom, courage and guidance to successfully complete this

project.

We are thankful to for his extraordinary support in the

development of this report. We are also thankful to our project

supervisor Mir Sajjad Hussain Talpur for his supervision and

guidance throughout the analysis, design and development of the

project. This project would not have come to completion without his

dedicated attention and guidance and helped us to setup the

required resources and research in security issue of the project.

Last but not the least we are also thankful to All the teachers of our

Department for their extraordinary support in the development of

this project, and those all persons who helped us directly or

indirectly in the development of this project.

Authors

DEDICATION III_____________________________________________________________________

CopyrightCopyright

We Mr. Sajjad Ahmed, Muhammad Noor, Syed

Mubashar Kazmi, Mir Asadullah Talpur , Zuhaib Hassan , Riaz

Ahmed & Muhammad Zaman here authorized by Information

Technology Centre, Sindh Agriculture University, Tandojam to

supply of our report to the libraries and individuals for study

purposes. However, no part of this report or the information

contained therein may be included in the publication or

referred to in a publication without the proper written

permissions from the authors. any reference must be fully

acknowledged.

SAJJAD AHMED SOOMRO

MUHAMMAD NOOR

SYED MUBASHAR KAZMI

MIR ASADULLAH TALPUR

ZUHAIB HASSAN QURESHI

RIAZ AHMED LASHARI

MUHAMMAD ZAMAN

ABSTRACT IV_____________________________________________________________________

AbstractAbstract

The project “ONLINE TESTING SYSTEM OF ITC” An Online

Testing System of ITC is one wherein a student answers his exam

on the computer and submits his answers. The submitted answers

are evaluated by the testing software and the results are available

immediately. This saves the evaluation time. Besides this a large

amount of details like online testing trends can be made available

immediately if required.

The Online Testing Software has several batches/Semesters in it.

practically for a system to be used on the internet it will have the

students details module, student authorization module, subjects

and questions management, question paper management,

evaluation system and generation of results as well as student

answer books.

Facilitates the more security using the Java tools. Classes and

css files are being constructed once and are used where so ever

they are needed waiving the huge coding; and if the change is to be

appearing then change would be just made in the single files that

will facilitate all the files of site. The proposed project is platform

independent because it is developed in java. Java is platform

independent language. The project “ONLINE TESTING SYSTEM

OF ITC” provides the following features.

It is platform independent because it is developed in java.

It is using the latest web application framework “Struts” that

is used to validate any kind of form data at server side.

The interface of the project is easy to use for

teacher/administrator.

The project also provides the functionality to the website

administrator manage the test question, test answer database

from anywhere.

ABSTRACT V_____________________________________________________________________

The project is also having an online version of testing system.

That is provided to the candidates that are appearing in class

online test.

The test result report is generated in PDF (Post Script

Format) which is most popular document format of today.

ABOUT GROUP MEMBERS VI_____________________________________________________________________

DeclarationDeclarationThis report is our original work and has not been submitted, in

whole or in part, for a degree at this or any other university. Nor does it

contain, to the best of our knowledge and belief, any material published

or written by another person, except as acknowledged in the text.

SAJJAD AHMED SOOMRO

MUHAMMAD NOOR

SYED MUBASHAR KAZMI

MIR ASADULLAH TALPUR

ZUHAIB HASSAN QURESHI

RIAZ AHMED LASHARI

MUHAMMAD ZAMAN

ABOUT GROUP MEMBERS VII_____________________________________________________________________

About Group MembersAbout Group MembersRealization of thoughts, translation of dreams, and fulfillment

of desires and achievements of aims depend upon coupled with

painstaking efforts and sincerity of purpose. There is no denying

the fact that we are very much dedicated and devoted with this

project. Off course, we deserve a pat on our back and a word of

appreciation and praise.

Our group has the following members for the project:

NAME REGISTRATION NO.

SAJJAD AHMED SOOMRO 2K5-IT-119

MUHAMMAD NOOR 2K5-IT-93

SYED MUBASHAR KAZMI 2K5-IT-79

MIR ASADULLAH TALPUR 2K5-IT-76

ZUHAIB HASSAN QURESHI 2K5-IT-142

RIAZ AHMED LASHARI 2K5-IT-116

MUHAMMAD ZAMAN 2K5-IT-102

Contents At a GlanceContents At a Glance

ABOUT GROUP MEMBERS VIII_____________________________________________________________________

PPARTICULARSARTICULARS PPAGEAGE N NOO..

CERTIFICATE I

RESEARCH CERTIFICATE II

DEDICATION III

COPYRIGHT IV

ABSTRACT V

DECLARATION VII

ABOUT GROUP MEMBERS VIII

Chapter No. 1:Chapter No. 1: IINTRODUCTIONNTRODUCTION 11

Chapter No. 2:Chapter No. 2: S SYSTEMYSTEM R REQUIREMENTEQUIREMENT AANALYSISNALYSIS

1010

Chapter No. 3:Chapter No. 3: T TECHNOLOGIESECHNOLOGIES U USEDSED I INN PPROJECTROJECT

1414

Chapter No. 4:Chapter No. 4: T TOOLSOOLS U USEDSED I INN P PROJECTROJECT 2525

Chapter No. 5:Chapter No. 5: I IMPLEMENTATIONMPLEMENTATION 2828

Chapter No. 6:Chapter No. 6: G GRAPHICALRAPHICAL U USERSER I INTERFACENTERFACE 3030

Appendix-A: Development Tools And Appendix-A: Development Tools And TechnologiesTechnologies 124124

Appendix-B: Hardware & Software Appendix-B: Hardware & Software RequirementsRequirements 126126

Appendix-C: Programmer GuideAppendix-C: Programmer Guide 128128

Appendix-D: Meeting MinutesAppendix-D: Meeting Minutes 130130

Appendix-E: UML DiagramsAppendix-E: UML Diagrams

Appendix-F: Source CodeAppendix-F: Source Code

141141

143143

Conclusion & Future WorkConclusion & Future Work 145145

BibliographyBibliography 147147

CCHAPTERHAPTER N NOO. . 11

INTRODUCTIONINTRODUCTION

INTRODUCTION CHAPTER NO.1_____________________________________________________________________

CCHAPTERHAPTER NNOO . 1. 1

IntroductionIntroductionThe designed “Online Testing System ” provides end users to apply

for test in the various courses , semesters, batches of BSIT degree

program of the ITC via intranet or Internet, it is fully computerized

Web Application, and provide rapid solutions for the Online testing

services, it is really an amazing work we have do a lot of research

work on behind of testing , Online Testing System maintain the

result /records of each student, the students can appear in test of

various courses, and we know the rule of this center, We have

developed Online Testing System for the ITC examinations, Sindh

Agriculture University. We have make a lot of research work on the

online testing System, Database management System of test

questions, test answers ITC testing system is much more complex,

we have to track out the result of students rapidly, We have taken

full advantage from the beauty of Java Technologies such as JDBC,

And Database at backend. The great amount of research work is

underway on online systems, in result lot of technologies has been

developed, they facilitated to the developers to develop such type

of applications at rapid phase, the designed system is portable from

both side hardware and software side, as the designed system is

written in java. The designed system based on fully database

programming front end developed in java and backend database

working. We have also worked on CMS (Content Management

System). So administrator can easily update the designed site

without the help of software developer.

An Online Testing System of ITC is one wherein a student answers

his exam on the computer and submits his answers. The submitted

answers are evaluated by the testing software and the results are

available immediately. This saves the evaluation time. Besides this

_____________________________________________________________________ONLINE TESTING SYSTEM OF ITC 2

INTRODUCTION CHAPTER NO.1_____________________________________________________________________

a large amount of details like online testing trends can be made

available immediately if required.

The Online Testing Software has several modules in it. Practically

for a system to be used on the internet it will have the students

details module, student authorization module, subjects and

questions management, question paper management, evaluation

system and generation of results as well as student answer books.

As we already discussed it is fully Database Management System,

that’s why it is completely dynamic system, we know that one

faculty provide many subjects and it is possible, faculty have rights

to add more subject in the semester or remove the subject from the

semester, and one batch provide many courses, such as web

programming, software engineering , java technology.

DESCRIPTIONDESCRIPTION

Actually online testing system of ITC is one wherein a student

answers his exam on the computer and submits his answers. The

submitted answers are evaluated by the testing software and the

results are available immediately. This saves the evaluation time.

Besides this a large amount of details like online testing trends can

be made available immediately if required.

The Online Testing Software has several batches/Semesters in it.

practically for a system to be used on the internet it will have the

students details module, student authorization module, subjects

and questions management, question paper management,

evaluation system and generation of results as well as student

answer books.

The Online Testing System of ITC, are well suited for multiple

choice type questions. Here a question is given and the student has

to select the correct answer out of the four given choices. A typical _____________________________________________________________________

ONLINE TESTING SYSTEM OF ITC 3

INTRODUCTION CHAPTER NO.1_____________________________________________________________________

question is shown in the introduction. After the student finishes

answering the question paper he submits it by clicking on the

submit button. The software then processes the answers and

awards the marks depending on the marking scheme of the

software; usually one mark is awarded for a correct answer and

zero for a wrong one.

As soon as the student submits the answers, the administrator of

the system can get the results instantly and depending on the

features several other data as well. This may include the overall

trends of the examination, the time taken by the student to answer,

the number of students passing in each section of a particular

subjects and so on.

Examination form, and finally past those students on the

ledger, because in the ledger only those students will be

inserted who fill the examination form and they are appear in

test.

OBJECTIVESOBJECTIVES

The main objective of selecting “ONLINE TESTING SYSTEM” is

to promote the students and get rapid results, and provide

reliability. All the records are computerized and accurate, secure

and easy to maintain.

PROJECT DESCRIPTIONPROJECT DESCRIPTION

This project “Online Testing System of ITC” will

provide the solution for online testing system. It provide

multithreading as it is an internet based application. So no matter

how many users access the project but it will become slow if there

are so many users want to access the website based on server

hardware specification.

_____________________________________________________________________ONLINE TESTING SYSTEM OF ITC 4

INTRODUCTION CHAPTER NO.1_____________________________________________________________________

SUMMARIESSUMMARIES

The major goal is to develop Online Testing System is to remove the

complex problem of the students, the designed “Online Testing

System” will provide rapid solutions.

BENEFITSBENEFITS

Security

User name and password is required to perform the teacher/

administrative operations.

Provides security since your JSP code cannot be viewed from

the browser

Reliability

This is very reliable web application; end user would be

satisfied through this software.

Accuracy

This is accurate software when we make the records. It

would be 100% accurate, this enables to become satisfy all

the users.

Error free

This is free from any error which might come when we make

the records manually. Now the records are prepared in

computerized way from database automatically.

Physical presence at a given location is absolutely not

necessary

No time is spent on evaluation

Results are available instantly

The time of starting and completion of test can be recorded

at the server and the student cannot manipulate the same.

Even for subjects that the actual examination that will not be

conducted online students can be given extensive practice

and training by holding online Mock Tests

_____________________________________________________________________ONLINE TESTING SYSTEM OF ITC 5

INTRODUCTION CHAPTER NO.1_____________________________________________________________________

Almost all competitive exams are multiple choice types and

these can be easily conducted online, for example GCET - Goa

Common Entrance Test held to shortlist candidates for

computer , medical and engineering courses

Trends of the testing including topic wise trends of each

subject can be easily obtained if required

What is in our project?What is in our project?

There are four portions of our project, which fulfills all

requirements of the “Online Testing System”.

Note: We have used fully graphical environment in this web

application.

Admin PanelAdmin Panel

Teacher PanelTeacher Panel

Online TestOnline Test

Test ResultTest Result

Contact UsContact Us

Admin Panel

The Admin Panel portion provides various options that are related

to the web application administration. Like Database Manager,

Modify Records like add/update/delete Batch, add/update/delete

Semester, add/update/delete Subject, Modify Candidate (students

and teachers) Status, Generate Test Result, and Delete Records.

_____________________________________________________________________ONLINE TESTING SYSTEM OF ITC 6

INTRODUCTION CHAPTER NO.1_____________________________________________________________________

Teacher Panel

The Teacher Panel portion provides various options that are related

to the web application administration. Like Database Manager,

Modify Records like add/update/delete Batch, add/update/delete

Semester, add/update/delete Subject, Modify Candidate (students)

Status, Modify Test detail and Test Questions of various subjects,

Generate Test Result, and Delete Records.

Database Manager

The Database Manager provides administrator facility to direct

access to the database of the Admission System remotely. For

security constraints, the administrator can only query to the

database tables he/she cannot perform the DML (Data

Manipulation Language) or DDL (Data Definition Language)

operations to the database.

Modify Candidate Status

The Modify Candidate Status is very useful option that provide

administrator to change the candidate status without knowing the

actual location of candidate record in database. The administrator

can change the candidate status.

Online Test

The Online Test portion provides the candidate to appear in the

web based test for examination in various subjects of Information

Technology Center Sindh Agriculture University Tandojam.

Test Result

The Test Result portion provides the result of online test. The test

result is available to all when the test time finishes. The candidate

can view test results by entering some of the information about the

test such as: batch, semester, subject and test date.

Batch_____________________________________________________________________

ONLINE TESTING SYSTEM OF ITC 7

INTRODUCTION CHAPTER NO.1_____________________________________________________________________

The Batch option is use to insert, update, delete and view batches

of the Information Technology Center directly through the web

application. It provides a simple GUI to insert, update, delete and

view the batches of the Information Technology Center. It makes

the administrator as well as Teacher job easier.

Semester

The Semester option is use to insert, update, delete and view

semesters of the Information Technology Center directly through

the web application. It provides a simple GUI to insert, update,

delete and view the semesters of the Information Technology

Center. It makes the administrator as well as Teacher job easier.

Subject

The Subject option is use to insert, update, delete and view various

subjects of the various semesters of the Information Technology

Center directly through the web application. It provides a simple

GUI to insert, update, delete and view the various subjects of the

Information Technology Center. It makes the administrator as well

as Teacher job easier.

User

The User option is use to insert, update, delete and view users of

the Information Technology Center directly through the web

application. It provides a simple GUI to insert, update, delete and

view the users of the Information Technology Center. It makes the

administrator as well as Teacher job easier.

Test

The Test option is use to insert, update, delete and view test detail

and questions of the test directly through the web application. It

_____________________________________________________________________ONLINE TESTING SYSTEM OF ITC 8

INTRODUCTION CHAPTER NO.1_____________________________________________________________________

provides a simple GUI to insert, update, delete and view the test

detail, questions and their answers. It makes the Teacher job

easier.

Result

The Result option of admin panel as well as teacher panel is

provide the administrator/teacher facility to generate the online

test result report just clicking a link. It generates the report in PDF

(PostScript Document Format) which is most widely accepted and

easy to save, print etc.

Contact Us

This Contact Us Page shows the information about the project team

such as project team contact numbers and email-ids.

_____________________________________________________________________ONLINE TESTING SYSTEM OF ITC 9

CCHAPTERHAPTER N NOO. . 22

SSYSTEMYSTEM R REQUIREMENTEQUIREMENT

AANALYSISNALYSIS

SYSTEM REQUIREMENTS ANALYSIS CHAPTER NO.2

CCHAPTERHAPTER NNOO . 2. 2

System RequirementSystem Requirement

AnalysisAnalysis

PPROBLEMROBLEM D DEFINITIONEFINITION

In traditional web applications, several drawbacks were

present due to which it was hard to access. It took a lot of time to

load the whole web application. This result in time-consuming and

somewhat inaccurate system, which causes great trouble for users.

Its major drawbacks in the sense of working are:

Accuracy : The traditional web applications are developed by

using the 3rd party pre made components which are mostly

inaccurate for developing a specific web application. That

creates problems in accuracy.

Economy : In the sense of economy or money matters, the

traditional web applications also shows poor performance; as

it requires lot of money to design and handle different users

at same time, which may not be properly managed.

Capacity : It also requires large capacity to put the graphical,

image files, which may save in any physical medium i.e.

storage media.

FFEASIBILITYEASIBILITY R REPORTEPORT

During our system study and going through various phases,

we observed that a biggest problem in traditional web application

_____________________________________________________________________ONLINE ADMISSION SYSTEM OF SAU 11

SYSTEM REQUIREMENTS ANALYSIS CHAPTER NO.2

is its slowness and complex interface. Therefore, sometimes it

really makes the difference in the work regarding time; the person

using the web application must know how to apply for online

admission and also what are the prerequisites for appearing in the

online version of entry test.

Technical FeasibilityTechnical Feasibility

1. We have to create a web application that provides the facility

of online admission and entry test to the users.

2. Java is very much reliable, robust and platform independent

and its used all over the world.

3. Anyone can access this technology easily due to its format

that meets the user need.

Economical FeasibilityEconomical Feasibility

1. It required a full time system study to make strong entity

relationships that automatically do main work such as

admission record handling entry test result, and

automatically create the entry test result report.

2. Cost of system study is not very much.

3. Not much money is spent on buying the hardware used to

operate this system.

Operational FeasibilityOperational Feasibility

1. The web application should be operated due to its

performance and ease of operational accuracy.

2. This system will be provided basic capability of accessing the

admission database for remotely access only for web app

administrator.

3. It is easy to configure and use.

4. Operational times is very low (through mainly depend on the

user machine).

_____________________________________________________________________ONLINE ADMISSION SYSTEM OF SAU 12

SYSTEM REQUIREMENTS ANALYSIS CHAPTER NO.2

CCOSTOST & R & RESOURCEESOURCE A ANALYSISNALYSIS

For this project, much expensive and advanced

hardware and software are not required. It is really a cheaper web

application system. Just we have to buy a domain for the web

application. Main things about the system’s hardware and software

requirements are as under:

HHARDWAREARDWARE R REQUIREDEQUIRED

o Pentium-IV 1.3 or higher (Pentium-IV 3.0GHz

Recommended)

o 128 MB of RAM (256MB RAM Recommended)

o 25 MB Hard Disk Space Minimum

o Keyboard

o Mouse (Optional)

o CD-ROM (Optional)

SSOFTWAREOFTWARE R REQUIREDEQUIRED

o Windows XP of higher

o JDK 1.5 or higher (JDK 1.6 Recommended)

o Apache Tomcat server 5.5 or higher

o MySQL Server

o Eclipse (JavaEE)

_____________________________________________________________________ONLINE ADMISSION SYSTEM OF SAU 13

SYSTEM REQUIREMENTS ANALYSIS CHAPTER NO.2

CCHAPTERHAPTER N NOO. . 33

TTECHNOLOGIESECHNOLOGIES U USEDSED I INN

PPROJECTROJECT

_____________________________________________________________________ONLINE ADMISSION SYSTEM OF SAU 14

TECHNOLOGIES USED IN PROJECT CHAPTER NO . 3_____________________________________________________________________

CCHAPTERHAPTER NNOO . 3. 3

Technologies used in Project

Java

Servlets + JSP

Struts Framework

HTML+CSS

AJAX

MySQL

Java

ABOUT JAVA Java is both a programming language and a platform.

The Java Programming Language

The Java programming language is a high-level language that can

be used by all of the following buzzwords:

Simple

Architecture neutral

Object oriented

Portable

Distributed

High performance

Interpreted

Multithreaded

Robust

Dynamic

Secure

With most programming languages, you either compile or interpret

a program so that you can run it on your computer. The Java _____________________________________________________________________

ONLINE ADMISSION SYSTEM OF SAU 15

TECHNOLOGIES USED IN PROJECT CHAPTER NO . 3_____________________________________________________________________

programming language unusual in that a program is both compiled

and interpreted. With the compiler, first you translate a program

into an intermediate language called Java byte codes the platform-

independent codes interpreted by the interpreter on the Java

platform.

The interpreter parses and runs each Java byte code instruction on

the computer. Compilation happens just once; interpretation occurs

each time the program is executed. The following figure illustrates

how this works.

You can think of java byte codes as the machine code instructions

for the Java Virtual Machine (JVM). Every java interpreter is

responsible to execute.

Java byte codes help make "Write Once, Run Anywhere" possible.

You can compile your program into byte codes on any platform that

has a Java compiler. The byte codes can then be run on any

implementation of the Java VM. That means that as long as a

computer has a Java VM, the same program written in the Java

programming language can run on Windows, Solaris or on an iMac.

_____________________________________________________________________ONLINE ADMISSION SYSTEM OF SAU 16

TECHNOLOGIES USED IN PROJECT CHAPTER NO . 3_____________________________________________________________________

_____________________________________________________________________ONLINE ADMISSION SYSTEM OF SAU 17

TECHNOLOGIES USED IN PROJECT CHAPTER NO . 3_____________________________________________________________________

Figure Typical Java Environment

_____________________________________________________________________ONLINE ADMISSION SYSTEM OF SAU 18

TECHNOLOGIES USED IN PROJECT CHAPTER NO . 3_____________________________________________________________________

Servlets & JSPServlets & JSP

Servlets are java technology’s answer to CGI programming. CGI

was widely used for generating dynamic content before Servlets

arrived. They were programs written mostly in C, C++ that run on

a web server and used to build web pages.

As you can see in the figure below, a client sends a request to web

server, server forwards that request to a servlet, servlet generates

dynamic content, mostly in the form of HTML pages, and returns it

back to the server, which sends it back to the client. Hence we can

say that servlet is extending the functionality of the webserver (The

job of the earlier servers was to respond only to request, by may be

sending the required html file back to the client, and generally no

processing was performed on the server)

What Servlets can do?

Servlets can do anything that a java class can do. For

example, connecting with database, reading/writing data

to/from file etc.

Handles requests sent by the user (clients) and generates

response dynamically (normally HTML pages).

The dynamically generated content is send back to the user

through a webserver (client)

_____________________________________________________________________ONLINE ADMISSION SYSTEM OF SAU 19

TECHNOLOGIES USED IN PROJECT CHAPTER NO . 3_____________________________________________________________________

Java Server PagesJava Server Pages

JSP is a text based document capable of returning either static or

dynamic content to a client’s browser. Static content and dynamic

content can be intermixed. The examples of static content are

HTML, XML & Text etc. Java code, displaying properties of

JavaBeans and invoking business logic defined in custom tags are

all examples of dynamic content. The difference between the

Servlet and JSP is that a servlet contains hard coded HTML coding

useful for pure java programs and JSP is like a traditional HTML

file useful for pure web based programming.

Struts FrameworkStruts Framework

Struts provides an extensive infrastructure for things like user

input validation, error handling and reporting, and flow control, all

of which are the bread and butter of building

Webapps. Struts allows people with different skill sets—web

designers, system analysts, system engineers, database engineers

—to work in parallel. Struts do this by enforcing a “separation of

concerns”: pieces of code that do different things are bundled

separately and given standardized ways of communicating between

themselves. This way, people can maintain or work on some parts

of the webapp without having to worry too much about other parts.

Craig McClanahan created Struts because he was asked to port a

U.S.-centric application to Europe. He had to give the application a

web interface as well as allow it to be easily translated to four

European languages (for this and other interesting bits, see Craig’s

blog in “Useful Links” at the end of this chapter). So, needless to

say, internationalization is something that struts makes particularly

easy to do. But Struts has much to offer beyond this. E.g.

validation, error handling etc.

_____________________________________________________________________ONLINE ADMISSION SYSTEM OF SAU 20

TECHNOLOGIES USED IN PROJECT CHAPTER NO . 3_____________________________________________________________________

HTMLHTML

What is HTML?

HTML stands for Hyper Text Markup Language

An HTML file is a text file containing small markup tags

The markup tags tell the Web browser how to display the

page

An HTML file must have an htm or html file extension

An HTML file can be created using a simple text editor

HTML TagsHTML Tags

The most important tags in HTML are tags that define headings,

paragraphs and line breaks. The best way to learn HTML is to work

with examples. We have created a very nice HTML editor for you.

With this editor, you can edit the HTML source code if you like, and

click on a test button to view the result.

HTML tags were originally designed to define the content of a

document. They were supposed to say "This is a header", "This is a

paragraph", "This is a table", by using tags like <h1>, <p>,

<table>, and so on. The layout of the document was supposed to be

taken care of by the browser, without using any formatting tags.

CSSCSS

What is CSS?

CSS stands for Cascading Style Sheets.

Styles define how to display HTML elements.

Styles are normally stored in Style Sheets.

Styles were added to HTML 4.0 to solve a problem.

External Style Sheets can save you a lot of work.

External Style Sheets are stored in CSS files.

Multiple style definitions will cascade into one.

_____________________________________________________________________ONLINE ADMISSION SYSTEM OF SAU 21

TECHNOLOGIES USED IN PROJECT CHAPTER NO . 3_____________________________________________________________________

Styles Solve a Common ProblemHTML tags were originally designed to define the content of a

document. They were supposed to say "This is a header", "This is a

paragraph", "This is a table", by using tags like <h1>, <p>,

<table>, and so on. The layout of the document was supposed to be

taken care of by the browser, without using any formatting tags.

As the two major browsers - Netscape and Internet Explorer -

continued to add new HTML tags and attributes (like the <font>

tag and the color attribute) to the original HTML specification, it

became more and more difficult to create Web sites where the

content of HTML documents was clearly separated from the

document's presentation layout.

To solve this problem, the World Wide Web Consortium (W3C) - the

nonprofit, standard setting consortium, responsible for

standardizing HTML - created STYLES in addition to HTML 4.0.  All

major browsers support Cascading Style Sheets.

Style Sheets Can Save a Lot of WorkStyles sheets define HOW HTML elements are to be displayed, just

like the font tag and the color attribute in HTML 3.2. Styles are

normally saved in external .css files. External style sheets enable

you to change the appearance and layout of all the pages in your

Web, just by editing one single CSS document!

CSS is a breakthrough in Web design because it allows developers

to control the style and layout of multiple Web pages all at once. As

a Web developer you can define a style for each HTML element and

apply it to as many Web pages as you want. To make a global

change, simply change the style, and all elements in the Web are

updated automatically. Multiple styles will cascade into one style

sheets allow style information to be specified in many ways. Styles

can be specified inside a single HTML element, inside the <head>

element of an HTML page, or in an external CSS file. Even multiple

_____________________________________________________________________ONLINE ADMISSION SYSTEM OF SAU 22

TECHNOLOGIES USED IN PROJECT CHAPTER NO . 3_____________________________________________________________________

external style sheets can be referenced inside a single HTML

document. 

AJAXAJAX

What is AJAX?

AJAX stands for Asynchronous JavaScript and XML.

AJAX is not a new programming language, but a new way to

use existing standards.

AJAX is the art of exchanging data with a server, and update

parts of a web page without reloading the whole page.

How AJAX WORKS:

MySQLMySQL

MySQL is the most popular open source database server a

database defines a structure for storing information. In a database,

there are tables. Just like HTML tables, database tables contain

rows, columns, and cells. Databases are useful when storing

information categorically. A company may have a database with the

_____________________________________________________________________ONLINE ADMISSION SYSTEM OF SAU 23

TECHNOLOGIES USED IN PROJECT CHAPTER NO . 3_____________________________________________________________________

following tables: "Employees", "Products", "Customers" and

"Orders".

Database TablesA database most often contains one or more tables. Each table has

a name (e.g. "Customers" or "Orders"). Each table contains records

(rows) with data.

Below is an example of a table called "Persons":

LastName FirstName Address

Sajjad Ahmed Soomro Hyderabad

Noor Muhammad Tandojam

Mir Asadullah Hyderabad

The table above contains three records (one for each person) and

three columns (LastName, FirstName and Address).

_____________________________________________________________________ONLINE ADMISSION SYSTEM OF SAU 24

TECHNOLOGIES USED IN PROJECT CHAPTER NO . 3_____________________________________________________________________

CCHAPTERHAPTER N NOO. . 44

TTOOLSOOLS U USEDSED I INN

PPROJECTROJECT

CCHAPTERHAPTER NNOO . 4. 4Tools Used In ProjectTools Used In Project

_____________________________________________________________________ONLINE ADMISSION SYSTEM OF SAU 25

TECHNOLOGIES USED IN PROJECT CHAPTER NO . 3_____________________________________________________________________

Eclipse JavaEEEclipse JavaEE

Eclipse is a modular, standards-based integrated development

environment (IDE), written in the Java programming language. The

Eclipse project consists of:

An open source IDE written in the Java programming language.

An application platform, which can be used as a generic framework

to build any kind of application.

Add-on packs, such as Mobility and Profiler that enable you to

extend Eclipse IDE's functionality.

Eclipse IDE supports the following technologies:

Enterprise JavaBeans (EJB) 3.0

JAX-WS 2.0

Java Persistence (JSR-220)

Java Server Faces 1.2 (JSR-127)

Java Servlet 2.5

Java Server Pages (JSP) 2.1

Struts 1.2.9

Java API for XML-based Remote Procedure Calls (JAX-RPC)

1.6

Java APIs for XML Registries (JAXR) 1.0

Java API for XML Processing (JAXP) 1.2

Java Server Pages Standard Tag Library 1.1

Macromedia Dreamweaver 8Macromedia Dreamweaver 8

_____________________________________________________________________ONLINE ADMISSION SYSTEM OF SAU 26

TECHNOLOGIES USED IN PROJECT CHAPTER NO . 3_____________________________________________________________________

Dreamweaver MX includes a number of functions that help in

making more advanced web pages. In order to use many of them,

some familiarity with basic HTML (hypertext markup language: the

language of web pages) is required. Site management-- defining a

site in Dreamweaver-- makes viewing and editing pages much

easier, and enables site wide changes, sset management and

element libraries, and other find and replace functionality, and the

use of templates. Dreamweaver also includes functionality to let

you insert pre-coded JavaScript Behaviors. Though these will not

work in every environment, they can sometimes be helpful. If

someone has given you a JavaScript to insert into a page, it's easy

to Cut and Paste Scripts in to pages.

Adobe Photoshop 7.0 Adobe Photoshop 7.0

Adobe Photoshop is the premier photo editing software tool.

Whether you are working on a webpage, PowerPoint presentation,

or a document to be printed, Photoshop can be used to enhance

your images. Participants will learn about image file types,

cropping images, compositing (putting several images together),

ghosting images (for use as webpage backgrounds), using layers,

creating masks, applying filters, and formatting text with bevels

and other effects.

Notepad ++ v 5.6Notepad ++ v 5.6

An open source text editor useful for various computer

programming source codes writing and editing.

ServersServers

Apache Tomcat server 6.0

MySQL server 5.0

_____________________________________________________________________ONLINE ADMISSION SYSTEM OF SAU 27

CCHAPTERHAPTER N NOO. . 55

IIMPLEMENTATIONMPLEMENTATION

CCHAPTERHAPTER NNOO . 5. 5

Implementation

CCHAPTERHAPTER N NOO. . 66

GGRAPHICALRAPHICAL U USERSER

IINTERFACENTERFACE

CCHAPTERHAPTER NNOO . 6. 6

Graphical User InterfaceGraphical User Interface

Main page

AAPPENDIXPPENDIX - A - A

DDEVELOPMENTEVELOPMENT T TOOLSOOLS

& T& TECHNOLOGIESECHNOLOGIES

APPENDIX – AAPPENDIX – A

Development Tools &Development Tools &

TechnologiesTechnologies

1. Java 2 Standard Edition (JDK 1.6.0_03)

2. ECLIPSE J2EE

3. Adobe Photoshop 7.0

4. MACROMEDIA DREAMVIEWER 8.0

5. Microsoft Visio 2003

6. MySQL Server 5.0

7. JasperReprots 2.0.2

8. Struts Validation Framework

9. Apache Tomcat Server 5.5

AAPPENDIXPPENDIX - B - B

HHARDWAREARDWARE & &

SSOFTWAREOFTWARE

RREQUIREMENTSEQUIREMENTS

APPENDIX – BAPPENDIX – B

Hardware & SoftwareHardware & Software

RequirementsRequirements

It is a distributed conferencing system that implements the

client/server model. It should meet the following hardware and

software requirements.

Hardware Requiredo Pentium-IV 1.3 or higher (Pentium-IV 3.0GHz

Recommended)

o 128 MB of RAM (256MB RAM Recommended)

o 25 MB Hard Disk Space Minimum

o Keyboard

o Mouse (Optional)

o CD-ROM (Optional)

Software Requiredo Windows XP of higher

o JDK 1.5 or higher (JDK 1.6 Recommended)

o Apache Tomcat server 5.5 or higher

o MySQL Server

o Eclipse J2EE

AAPPENDIXPPENDIX - C - C

PPROGRAMMERROGRAMMER G GUIDEUIDE

APPENDIX – CAPPENDIX – C

Programmer GuideProgrammer Guide

Before running this application user or application

administrator must fulfill all the following requirements:

1. Install JDK 1.5 or later

You must install the JDK 1.5 with JRE 1.5 or later to

fulfill the requirement of JVM.

2. Install and Configure Apache Tomcat Server 5.5 or later

You must install the Apache Tomcat Server 5.5 and also

configure it.

3. Install and Configure MySQL Server

You must install the MySQL Server and also configure

it.

AAPPENDIXPPENDIX - D - D

MMEETINGEETING M MINUTESINUTES

AAPPENDIXPPENDIX – D – D

Meeting MinutesMeeting Minutes

11STST M MEETINGEETING M MINUTESINUTES

Project Title : Online Testing System of ITC

Project Supervisor : MIR SAJJAD HUSSAIN TALPUR

MEETING STATISTICS

Date : DEC 17, 2009

Venue : ITC, SAU

Starting Time: 12:19 pm

Ending Time : 12:43 pm

MEETING PARTICIPANTS

SAJJAD AHMED SOOMRO

MUHAMMAD NOOR

SYED MUBASHAR KAZMI

MIR ASADULLAH TALPUR

ZUHAIB HASSAN QURESHI

RIAZ AHMED LASHARI

AGENDA

Scheduling of project time period.

_______________________ _______________________

Project Supervisor Project Developer

22NDND M MEETINGEETING M MINUTESINUTES

Project Title : Online Testing System of ITC

Project Supervisor : MIR SAJJAD HUSSAIN TALPUR

MEETING STATISTICS

Date : DEC 22, 2009

Venue : ITC, SAU

Starting Time: 11:31 am

Ending Time : 11:58 am

MEETING PARTICIPANTS

SAJJAD AHMED SOOMRO

MUHAMMAD NOOR

SYED MUBASHAR KAZMI

MIR ASADULLAH TALPUR

ZUHAIB HASSAN QURESHI

RIAZ AHMED LASHARI

AGENDA

Discussion on project scope

_______________________ _______________________

Project Supervisor Project Developer

33RDRD M MEETINGEETING M MINUTESINUTES

Project Title : Online Testing System of ITC

Project Supervisor : MIR SAJJAD HUSSAIN TALPUR

MEETING STATISTICS

Date : DEC 28, 2009

Venue : ITC, SAU

Starting Time: 12:36 pm

Ending Time : 12:53 pm

MEETING PARTICIPANTS

SAJJAD AHMED SOOMRO

MUHAMMAD NOOR

SYED MUBASHAR KAZMI

MIR ASADULLAH TALPUR

ZUHAIB HASSAN QURESHI

RIAZ AHMED LASHARI

AGENDA

Discussion on project scope

_______________________ _______________________

Project Supervisor Project Developer

44THTH M MEETINGEETING M MINUTESINUTES

Project Title : Online Testing System of ITC

Project Supervisor : MIR SAJJAD HUSSAIN TALPUR

MEETING STATISTICS

Date : January 05, 2010

Venue : ITC, SAU

Starting Time: 10:49 am

Ending Time : 11:09 am

MEETING PARTICIPANTS

SAJJAD AHMED SOOMRO

MUHAMMAD NOOR

SYED MUBASHAR KAZMI

MIR ASADULLAH TALPUR

ZUHAIB HASSAN QURESHI

RIAZ AHMED LASHARI

AGENDA

Discussion on analysis and design of the project.

_______________________ _______________________

Project Supervisor Project Developer

55THTH M MEETINGEETING M MINUTESINUTES

Project Title : Online Testing System of ITC

Project Supervisor : MIR SAJJAD HUSSAIN TALPUR

MEETING STATISTICS

Date : January 12, 2010

Venue : ITC, SAU

Starting Time: 10:19 am

Ending Time : 10:43 am

MEETING PARTICIPANTS

SAJJAD AHMED SOOMRO

MUHAMMAD NOOR

SYED MUBASHAR KAZMI

MIR ASADULLAH TALPUR

ZUHAIB HASSAN QURESHI

RIAZ AHMED LASHARI

AGENDA

Discussion on selected tools.

Discussion on advantages of selected tools.

_______________________ _______________________

Project Supervisor Project Developer

66THTH M MEETINGEETING M MINUTESINUTES

Project Title : Online Testing System of ITC

Project Supervisor : MIR SAJJAD HUSSAIN TALPUR

MEETING STATISTICS

Date : January 18, 2010

Venue : ITC, SAU

Starting Time: 12:17 pm

Ending Time : 12:41 pm

MEETING PARTICIPANTS

SAJJAD AHMED SOOMRO

MUHAMMAD NOOR

SYED MUBASHAR KAZMI

MIR ASADULLAH TALPUR

ZUHAIB HASSAN QURESHI

RIAZ AHMED LASHARI

AGENDA

Discussion on thesis and its schedule.

It was given a thesis as sample.

_______________________ _______________________

Project Supervisor Project Developer

77THTH M MEETINGEETING M MINUTESINUTES

Project Title : Online Testing System of ITC

Project Supervisor : MIR SAJJAD HUSSAIN TALPUR

MEETING STATISTICS

Date : January 26, 2010

Venue : ITC, SAU

Starting Time: 1:19 pm

Ending Time : 1:43 pm

MEETING PARTICIPANTS

SAJJAD AHMED SOOMRO

MUHAMMAD NOOR

SYED MUBASHAR KAZMI

MIR ASADULLAH TALPUR

ZUHAIB HASSAN QURESHI

RIAZ AHMED LASHARI

AGENDA

Discussion about object-oriented language.

Discussion about features of Java Technology.

It was asked by the supervisor to tell more about topic.

_______________________ _______________________

Project Supervisor Project Developer

88THTH M MEETINGEETING M MINUTESINUTES

Project Title : Online Testing System of ITC

Project Supervisor : MIR SAJJAD HUSSAIN TALPUR

MEETING STATISTICS

Date : FEB 05, 2010

Venue : ITC, SAU

Starting Time: 1:02 pm

Ending Time : 1:21 pm

MEETING PARTICIPANTS

SAJJAD AHMED SOOMRO

MUHAMMAD NOOR

SYED MUBASHAR KAZMI

MIR ASADULLAH TALPUR

ZUHAIB HASSAN QURESHI

RIAZ AHMED LASHARI

AGENDA

Discussion on Struts & Jasper Reports Technology.

_______________________ _______________________

Project Supervisor Project Developer

99THTH M MEETINGEETING M MINUTESINUTES

Project Title : Online Testing System of ITC

Project Supervisor : MIR SAJJAD HUSSAIN TALPUR

MEETING STATISTICS

Date : MAR 15, 2010

Venue : ITC, SAU

Starting Time: 11:32 am

Ending Time : 12:03 pm

MEETING PARTICIPANTS

SAJJAD AHMED SOOMRO

MUHAMMAD NOOR

SYED MUBASHAR KAZMI

MIR ASADULLAH TALPUR

ZUHAIB HASSAN QURESHI

RIAZ AHMED LASHARI

AGENDA

Discussion on project scope.

It was asked by the supervisor to check the thesis work.

_______________________ _______________________

Project Supervisor Project Developer

1010THTH M MEETINGEETING M MINUTESINUTES

Project Title : Online Testing System of ITC

Project Supervisor : MIR SAJJAD HUSSAIN TALPUR

MEETING STATISTICS

Date : APRIL 05, 2010

Venue : ITC, SAU

Starting Time: 12:11 pm

Ending Time : 12:29 pm

MEETING PARTICIPANTS

SAJJAD AHMED SOOMRO

MUHAMMAD NOOR

SYED MUBASHAR KAZMI

MIR ASADULLAH TALPUR

ZUHAIB HASSAN QURESHI

RIAZ AHMED LASHARI

AGENDA

Project demo is showed.

It was asked by the supervisor to show the project demo.

_______________________ _______________________

Project Supervisor Project Developer

AAPPENDIXPPENDIX - E - E

UML DUML DIAGRAMSIAGRAMS

UML DIAGRAMS APPENDIX-E _____________________________________________________________________

APPENDIX – EAPPENDIX – E

Use Case DiagramUse Case Diagram

_____________________________________________________________________ONLINE TESTING SYSTEM OF ITC 49

AAPPENDIXPPENDIX - F - F

SSOURCEOURCE C CODEODE

SOURCE CODE APPENDIX-F_____________________________________________________________________

APPENDIX – FAPPENDIX – F

Source CodeSource CodeThe source code of “Online Testing System of ITC” project

found in attached CD (Compact Disk).

_____________________________________________________________________ONLINE TESTING SYSTEM OF ITC 51

SOURCE CODE APPENDIX-F_____________________________________________________________________

CCONCLUSIONONCLUSION

& &

FFUTUREUTURE W WORKORK

_____________________________________________________________________ONLINE TESTING SYSTEM OF ITC 52

SOURCE CODE APPENDIX-F_____________________________________________________________________

Conclusion & FutureConclusion & Future

WorkWork

Conclusion

We are grateful to Almighty ALLAH; the project has successfully

been completed. All configurations have been made & tested on our

personal Computers & they are working properly.

This Software makes impact of online testing system rather than

manual.

Future work

Although this project fulfills requirement of Online Testing System

of ITC but there is still need to work further because the world is

not enough.

_____________________________________________________________________ONLINE TESTING SYSTEM OF ITC 53

BBIBLIOGRAPHYIBLIOGRAPHY

BibliographyBibliography[Complete Reference] Java2 (Complete Reference) 5th Edition

[Deitel & Deitel]How To Program – 6th Edition

[Umair Javed]Web Designing & Development

WEB RESOURCES

[Struts][Struts]www.strutsmypassion.comwww.vaannila.com

[Java]www.java2s.comwww.javapassion.comwww.roseindia.net

[MySQL]www.java2s.com\mysql