Student Admission Management System Final
Student Admission Management System Final
Table of contents
1. Introduction
Introduction
System Analysis
1.2.1 Existing system
1.2.2 Proposed system
2. Module
Module Description
System features
3. Physical Design
Data Dictionary
3.4 Requirements
2
4. About JAVA
4.2 JDBC
4.3 JSP
5. About ORACLE
5.1 DBMS
5.2 RDBMS
5.3 SQL
6. Testing
7. Screens
8. Conclusion
9. References
3
I
N
T
R
O
CHAPTER ------- 1 D
U
C
T
I
O
N
4
Student Project Allocation and Management with
Online Testing System
1.Introduction:
Functional components:
This is a system used by Educational Institutions or other organizations,
which are willing to give student projects. We have three roles in this
system, an administrator, a professor and a student. An administrator
logs into this system, and can register a professor who belongs to that
institution.
Students register in this system and get userid (similar to a website like
Yahoo). A student should register, provide his information (like semester
marks , technologies familiar with, prior project experience etc., ) and
also provide information about his team members. This is saved in a
database.
5
In the same system the professors who have been registered by the
administrator can login and then shortlist students by their academic
performance (percentage as entered by the students during their
registrations) and/or test score. Following is a brief description of the
flow of the system:
The online testing system, which starts automatically and stops after a
particular stipulated time.
Auto generation of emails as soon as the professor assigns projects to
the student groups, intimating them that they have been assigned
project and need to report to the professor within 1-2 weeks.
A validation like the student doesn’t give the test twice etc.
6
2. MODULES:
1. Administrator
2. Professor
3. Student
Module Description:
1. Administrator:
Can login to the system through the first page of the application
Can create new user account for a professor and assign/change(if
existing user) username and a password
2. Professor
A registered professor, who is assigned a user name and a
password by the administrator logs in, should enter at least one
project and its description which he is willing to allocate to the
students.
He/she is given an option to sort and shortlist students by various
criteria such as percentage scored in the online test, academic
performance, technologies familiar with, past experience etc. A
professor can view all students’ information.
He can see student status, such as whether the student is available or has
been assigned a project by any other professor, and if assigned then by
which professor
A professor after short-listing students, clicks a button so that he locks
the student group. i.e. no other professor can assign them any projects
now, as they have already been assigned one by this professor, thus
assigning the a status
A mail is automatically, sent to the student group i.e. all its team
members that they are assigned a project, by this professor
7
2. Student
8
3. PHYSICAL DESIGN
rounded rectangle.
named.
system.
9
2. Logical Data Flow Diagrams:
These diagrams describe the system
greater details:
rectangles.
detailed DFD.
Explanation of DFD
In the Student Project Management with Online Testing the data flow
10
CONTEXT DIAGRAM:
11
Level 1 Diagram For Student
12
Level 1 Diagram For Administrator
13
Level 1 Diagram For professor
14
Level 2 Diagram For professor
15
DATA DICTIONARY:
16
S.No Column_name Data type Description
2 Pw d V a r c h a r 2 Pa ssw o r d
17
Database Tables:
Login database
REGISTER DATABASE
18
QUESTION DATABASE
19
QUESTION AND ANSWERS DATABASE
20
RESULT DATABASE
21
1 P_id Varchar2 Project
22
PROJECT DATABASE
3.3 ENTITY RELATIONSHIP DIAGRAMS
ER diagram is composed of
3.4 REQUIREMENTS
3.4.1 SOFTWARE REQUIREMENTS
Oracle 9i
23
Software Interfaces
Operating System: Windows 2000
Database : Oracle 9i
RAM : 256 MB
Monitor : LG
Hardware Interfaces
24
25
3.5 USECASE DAIGRAM
in a dialogue. An actor is someone or some thing that ust interact with the
their relationships.
26
27
3.7 ACTIVITY DIAGRAM:
Start
No
Login
Yes
Test
Result
Stop
An activity diagram is a special kind of a state chart diagram that shows the flow
from activity to activity within a system. Here we are having four forms they are
28
SEQUENCE DIAGRAM:
login
enter
test
onlinetest
result
viewresult
29
4. ABOUT JAVA
all over the world. These network connections are increasing day by day
suitable for this heterogeneous Environment and java was the solution.
operating systems.
Simple
Secure
Portable
Object oriented
Robust
Multithreaded
30
Simple:
learning java is very easy. It inherits syntax from c & object oriented
features from c++, so if the user knows c\c++ then it will be a easy way
Secure:
credit card number, bank account balances & passwords by searching the
contents of your computers local file system. Java has a better answer for
computer.
Virtual Machine).
31
Object-Oriented:
and easy to extend, while simple types, such as integers, are kept as
high-performance non-objects.
Robust:
the design of java. To gain reliability, java restricts you in a few key areas,
same time, java frees you from having to worry about many of the most
language, it checks your code at Compile time. Java is robust for two
relational database. In the other words, with the JDBC API, it is not
32
necessary to write to one program to access a Sybase database, another
database, and so on. One can write a single program using the JDBC API,
and the program will be able to send SQL statements to the appropriate
JDBC extends what can be done in Java. For example, with Java and
applet that uses information obtained from a remote database. With more
and more Programmers using the Java Programming language, the need
33
update once, put it on the server, and everybody has access to the latest
SQL commands directly, it works very well in this capacity and is easier to
base upon which to build higher level interfaces and tools. A high level
convenient API that is translated behind the scenes into a low level
interface such as JDBC. At the time of writing, two kinds of higher level
1) An embedded SQL for Java. At least one vendor plan to build this DBMS
34
ODBC is hard to learn. It mixes simple and advanced features
together, and it has complex options even for simple queries. JDBC, on
the other hand, was designed to keep simple things simple while allowing
solution. When ODBC is used, the ODBC Driver Manager and drivers must
to mainframes.
The primary function of the JDBC API is to provide a means for the
35
object-oriented access to databases by defining classes and
1. Database connections
2. SQL statements
3. Result Set
4. Database metadata
5. Prepared statements
8. Callable statements
9. Database drivers
JDBC driver manager ensures that the correct driver is used to access
36
Layers of the JDBC Architecture
database changes, only the JDBC driver need be replaced with few
drivers.
37
Type 1 JDBC-ODBC Bridge: Type 1 drivers act as a "bridge" between
The JDBC- ODBC bridge provides JDBC access using most standard
ODBC drivers. This driver is included in the Java 2 SDK within the
Type 2 drivers use the Java Native Interface (JNI) to make calls
to a local database library API. This driver converts the JDBC calls
into a database specific call for databases such as SQL, ORACLE etc.
38
drivers are usually faster than Type 1 drivers. Like Type 1 drivers,
back end. Type 3 drivers can be deployed over the Internet without
39
Type 3 JDBC Architecture
not require native database libraries and can be deployed over the
new Type 4 driver (some Type 4 drivers are available free of charge
40
from the database manufacturer). However, because Type drivers
SQL statements.
So, you may be asking yourself, "Which is the right type of driver
install and configure software on each client, you can rule out Type 1 and
Type 2 drivers.
type 2 drivers may become more attractive because they are usually
available free of charge. Price aside, the debate will often boil down to
41
interoperability against performance. Type 3 drivers offer your
like Type 1 and Type 2 drivers, may be available free if charge from the
database manufacturer.
The JDBC API supports both two-tier and three-tier models for
database access.
the database. This requires a JDBC driver that communicates with the
are sent back to the user. The database may be located on another
can be Internet.
42
Java Application
JDBC
Database Server
processes the SQL statements and sends the results back to the middle-
tier, which then sends them to the users. Another advantage is that when
API, which is translated by the middle tier into the appropriate low-level
performance advantages.
43
Java Application
Middle Ware
(Business Logics)
Data Base
44
4.2.2 JDBC Driver types
The JDBC drivers that we are aware of this time generally fit into
the network protocol used by DBMS. Since many of these protocols are
45
4.3 JAVA DATABASE CONNECTION
with one type of data storage can be ported or extended to work with
occur only with JDBC (Java Database Connectivity) API. Although, the
uses the Socket classes included in the java.net package and the data
input and output stream classes included in the java.io package. If you
Companies are also creating their own optimized data access classes,
management systems, Java can also be used to store data to files using
object serialization.
46
The JDK contained core classes grouped together into packages, two of
database and send and receive data. However, most of us do not want to
transaction.
class used as the basis for several drivers. Drivers provide the
JDBC.First; the JDBC-ODBC Bridge used native method calls and a DLL
the JDBC limits network connectivity to the same host from which the
installed on the same server as the HTTP server – a potential security risk.
that the object can be retrieved as an object from the store. Objects can
47
associations. With serialization, you can also store these same objects in
interface and to provide a good first step for beginning to work with data
access in Java, the Java dbutil application was created to work with the
JDBC-ODBC Bridge. This tool takes five parameters: the ODBC database
category, and the information category option. Among the options the
variables for use with the Database Metadata interface, which are too
numerous to list here. Use the JDK documentation to modify the tool to
suit your needs or to have a little fun with some very simple coding that
The Java Database Connectivity (JDBC) API includes classes that can
than one database at a time, the JDBC provides the functionality most
48
applications need. Connecting to a Database and making Simple
connect to a database, make a query, and process the result takes not
development that has received a great deal of attention since it was first
announced.
49
Why is JSP so exciting?
platform and can take advantage of the many Java Enterprise libraries,
In the early days of the Web, the only tool for developing dynamic
web content was the Common Gateway Interface (CGI). CGI outlined how
a web server made user input available to a program, as well as how the
send back. CGI scripts were typically written in Perl. (In fact, CGI Perl
scripts still drive numerous dynamic web sites.) However, CGI is not an
efficient solution. For every request, the web server has to create a new
execute the script, and then dispose of the entire process when it's done.
been added to programmers' toolboxes over the last few years: FastCGI,
for example, runs each CGI program in an external permanent process (or
Netscape, and ISAPI for Microsoft's IIS all run server-side programs in the
same process as the web server itself. While these solutions offer better
50
performance and scalability, each one is supported by only a subset of
looked at the code for a servlet, you've probably seen endless calls to
approach may work fine, but it makes it very difficult for people with
style sheets can make it easier to globally change fonts and colors, and
images can make the interface more appealing. At the same time, server-
allowing web page authors with skills in graphics, layout, and usability to
51
work in tandem with programmers who are experienced in server-side
caching. While there are other technologies, such as ASP, PHP and
An Overview of JSP
as HTML, DHTML, XHTML and XML. The Java Server Pages technology
enables the authoring of Web pages that create dynamic content easily
following concepts:
Template Data
52
Encapsulation of Functionality
The JSP technology provides two related mechanisms for the
The JSP technology has features that enable the creation of good
technology.
its dynamic Web pages, Web servers, and its underlying server
components. You can author JSP pages on any platform, run them on any
Web server or Web enabled application server, and access them from any
Web browser.
The Write Once, Run Anywhere properties of JSP allows the user to
tools.
Separation of Roles
53
JSP supports the separation of roles: developers write components
content from dynamic content that is inserted into the static template.
54
4.4.1 JSP ARCHITECTURE
Client1
Client2 LOGICS
Server
Client3
Logic which is required is written at one place and can be accessed by all
the clients which are at different places when they require. So, in order to
Model 1
Model 2
55
Model-1 Architecture
are combined. When these two are combined each presentation logic
requires copy of business logic so that the model and server should work
Model
Request processing
Data validation
View Business logic processing
server
n- clients Data manipulation
Response generation
Fig (10)
Model-2 Architecture
parts in this,
View
Controller
Model
56
Model:
View:
JSP acts a view which receives data from the model this view
Controller:
Controller
Data
Base
Browser
View Model
Fig (12)
57
5. ABOUT ORACLE
(DBMS)
A Database is an integrated collection of user related
programs that allow several users to access and manipulate data. Its main
purpose is to provide users with an abstract view of the data, i.e. the
system hides certain details of how the data is stored and maintained.
Database
Hardware
Software
User
58
Database:
application system.
Hardware:
Software:
The layer between the physical database and the users that
handles all requests from the user for access to the database.
User:
Application Programmers
End User
Hierarchical
Network
Inverted
Relational
59
5.2.1 RELATIONAL DATABASE MANAGEMENT SYSTEMS
stored in the database. The relational model has three different aspects.
Structures
Operation
Integrity rules
Structures:
operations.
Operations:
They are clearly defined actions that allow users to manipulate the
Integrity rules:
They are laws that govern which operations are allowed on the data
and structures of a database. Integrity rules protect the data and the
structures of a database.
60
A DBMS can be regarded as relational only if it obeys a set of 12
relational capabilities”.
61
5.2.3 ADVANTAGES OF RDBMS:
Data independence
Sharing data
automatic backup
Cost of software/hardware
62
5.2.5 COMPARISION OF DBMS AND RDBMS:
63
5.3 STRUCTURED QUERY LANGUAGE:
SQL (pronounced “SEQUEL”) stands for Structured Query Language,
records rather than just one data at a time and also provides automatic
navigation to the data. Here one can manipulate a set or rows rather than
one at a time. SQL commands accept a sets or rows as input and return
sets as outputs. The set property of SQL allows the results of one SQL
statement to be used as input to another. Here one need not specify the
follows:
64
Data Definition Language (DDL) - create, alter, drop, truncate,
rename.
applications. Existing databases like FoxPro, DBase are designed for small
65
RDBMS architecture is very powerful having the features like high data
systems.
Even though the architecture of all RDBMS is same but the features
are different from different RDBMS. Oracle, Sybase, Informix. As per the
features concerned all the RDBMS can be related as it. But with the
professionals. Even the support from the vendors in also high in Oracle
reverie and backup and total GUI based presentation and can easily and
66
DATABASE CONNECTIONS:
specific driver connection string that uses the protocol defined for the
driver. The JDBC Driver Manager class to determine which driver to load
A Query returns a Result set object. This object contains the results
query has no results, the Result Set object contains no rows. Otherwise it
contains rows of data matching the query (up to the limit specified by the
database). If the database supports doing so, you can set the maximum
and then execute it many times, or call a stored procedure that returns
67
PROBLEMS USING WITH CURSORS:
not support these features, the execute () method can result in an error
such as invalid cursor state (as happened when we ran the sample7
application with both the Sybase SQL anywhere ODBC Driver and the
The last Java application that was created in this chapter is one that
68
6. TESTING
What is Testing?
Software Testing:
finding an error.
reasons:
Defect detection
Reliability estimation
69
White Box Testing:
1. Unit testing
2. Integration testing
3. Validation testing
4. System testing
Unit testing
source code and is a white box oriented. Using the component level
uncover errors within the boundary of the module. In the unit testing,
Integration testing:
70
tests to uncover errors associated with interfacing. The objective is to
take unit tested components and build a program structure that has been
dictated by design.
Validation testing:
analysis are validated against the software that has been constructed i.e.,
System testing:
whole.
71
7. SCREENS
72
73
8. CONCLUSION
Intensive care has been taken by us to meet all the
requirements of the client .Each module has undergoes stringent
testing procedures and the integration testing activity has been
performed for reach module.
74
9. REFERERNCES
WEBSITE REFERENCES
www.java.sun.com
www.webmasterworld.com
www.visualbuilder.com
www.javaworld.com
www.thescripts.com
www.youcanlearnseries.com
75