Professional Documents
Culture Documents
Student Portal
Student Portal
Student Portal
PROJECT WORK ON
STUDENT PORTAL
BY
K.PRASANTHI
CH.RAMA LAKSHMI
SK.GOUSIYA PARVEEN
A.NAGA ANUSHA
S.NAGAMANI
GUIDED BY
MS.E.KIRANMAI(MCA)
(Computer Department)
SUBMITTED TO
SRI DURGA MALLESWARA SIDDHARTHA MAHILA
KALASALA
(An Autonomous in the jurisdiction of Acharya Nagarjuna University )
VIJAYAWADA-10
ACKNOWLEDGEMENT
1. Abstract
4. Module Description
5. Testing
7. Data Dictionary
8. Coding
Pentium IV Processor.
128 MB RAM.
Software Requirements
MS-Access.
Java/J2EE.
Tomcat 4.1,Tomcat 5.0
ACCESS,SERVLETS,
JDBC,JSP,HTML
In my project, I have chosen Java language for developing the code.
About Java
Initially the language was called as “oak” but it was renamed as “Java” in
1995. The primary motivation of this language was the need for a platform-
independent (i.e., architecture neutral) language that could be used to
create software to be embedded in various consumer electronic devices.
Java is a programmer’s language.
Java has had a profound effect on the Internet. This is because; Java
expands the Universe of objects that can move about freely in Cyberspace.
In a network, two categories of objects are transmitted between the Server
and the Personal computer. They are: Passive information and Dynamic
active programs. The Dynamic, Self-executing programs cause serious
problems in the areas of Security and probability. But, Java addresses those
concerns and by doing so, has opened the door to an exciting new form of
program called the Applet.
Beyond the language, there is the Java virtual machine. The Java virtual
machine is an important element of the Java technology. The virtual
machine can be embedded within a web browser or an operating system.
Once a piece of Java code is loaded onto a machine, it is verified. As part of
the loading process, a class loader is invoked and does byte code
verification makes sure that the code that’s has been generated by the
compiler will not corrupt the machine that it’s loaded on. Byte code
verification takes place at the end of the compilation process to make sure
that is all accurate and correct. So byte code verification is integral to the
compiling and executing of Java code.
Overall Description
Java . Class
Picture showing the development process of JAVA Program
Java programming uses to produce byte codes and executes them. The first
box indicates that the Java source code is located in a. Java file that is
processed with a Java compiler called javac. The Java compiler produces a
file called a. class file, which contains the byte code. The. Class file is then
loaded across the network or loaded locally on your machine into the
execution environment is the Java virtual machine, which interprets and
executes the byte code.
SERVLETS
Introduction
The Java web server is JavaSoft's own web Server. The Java web server is
just a part of a larger framework, intended to provide you not just with a
web server, but also with tools. To build customized network servers for any
Internet or Intranet client/server system . Servlets are to a web server, how
applets are to the browser.
About Servlets
There are many features of Servlets that make them easy and attractive to
use. These include:
Easily configured using the GUI-based Admin tool
Can be loaded and invoked from a local disk or remotely across
the network.
Can be linked together, or chained, so that one Servlets can
call another Servlets, or several Servlets in sequence.
Can be called dynamically from within HTML pages, using
server-side include tags.
Are secure - even when downloading across the network, the
Servlets security model and Servlets sandbox protect your
system from unfriendly behavior.
Advantages of the Servlet API
From a remote location. For this a code base like http: // nine.eng /
classes / foo / is required in addition to the Servlets class name. Refer to
the admin GUI docs on Servlet section to see how to set this up.
JavaScript
Even though JavaScript supports both client and server Web programming,
we prefer JavaScript at Client side programming since most of the browsers
supports it. JavaScript is almost as easy to learn as HTML, and JavaScript
statements can be included in HTML documents by enclosing the statements
between a pair of scripting tags
<SCRIPTS>.. </SCRIPT>.
JavaScript statements
</SCRIPT>
Here are a few things we can do with JavaScript:
Validate the contents of a form and make calculations.
Add scrolling or changing messages to the Browser’s status
line.
Animate images or rotate images that change when we move
the mouse over them.
Detect the browser in use and display different content for
different browsers.
Detect installed plug-ins and notify the user if a plug-in is
required.
We can do much more with JavaScript, including creating entire application.
JavaScript Vs Java
JavaScript and Java are entirely different languages. A few of the most
glaring differences are:
ADVANTAGES
What Is JDBC?
JDBC is a Java API for executing SQL statements. (As a point of interest,
JDBC is a trademarked name and is not an acronym; nevertheless, JDBC is
often thought of as standing for Java Database Connectivity. It consists of a
set of classes and interfaces written in the Java programming language.
JDBC provides a standard API for tool/database developers and makes it
possible to write database applications using a pure Java API.
Using JDBC, it is easy to send SQL statements to virtually any relational
database. One can write a single program using the JDBC API, and the
program will be able to send SQL statements to the appropriate database.
The combinations of Java and JDBC lets a programmer write it once and run
it anywhere.
So why not just use ODBC from Java? The answer is that you
can use ODBC from Java, but this is best done with the help
of JDBC in the form of the JDBC-ODBC Bridge, which we will
cover shortly. The question now becomes "Why do you need
JDBC?" There are several answers to this question:
1. ODBC is not appropriate for direct use from Java because it uses a C
interface. Calls from Java to native C code have a number of
drawbacks in the security, implementation, robustness, and
automatic portability of applications.
2. A literal translation of the ODBC C API into a Java API would not be
desirable. For example, Java has no pointers, and ODBC makes
copious use of them, including the notoriously error-prone generic
pointer "void *". You can think of JDBC as ODBC translated into an
object-oriented interface that is natural for Java programmers.
3. 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 more advanced capabilities where required.
4. A Java API like JDBC is needed in order to enable a "pure Java"
solution. When ODBC is used, the ODBC driver manager and drivers
must be manually installed on every client machine. When the JDBC
driver is written completely in Java, however, JDBC code is
automatically installable, portable, and secure on all Java platforms
from network computers to mainframes.
JDBC-ODBC Bridge
If possible, use a Pure Java JDBC driver instead of the Bridge and an
ODBC driver. This completely eliminates the client configuration required by
ODBC. It also eliminates the potential that the Java VM could be corrupted
by an error in the native code brought in by the Bridge (that is, the Bridge
native library, the ODBC driver manager library, the ODBC driver library,
and the database client library).
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 earlier 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 a JSP 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.
Access Models:
A Java Server Pages file may be accessed in at least two different ways. A
client’s request comes directly into a Java Server Page. In this scenario,
suppose the page accesses reusable Java Bean components that perform
particular well-defined computations like accessing a database. The result of
the Beans computations, called result sets is stored within the Bean as
properties. The page uses such Beans to generate dynamic content and
present it back to the client.
In both of the above cases, the page could also contain any valid Java code.
Java Server Pages architecture encourages separation of content from
presentation.
Purpose
The generated application is the first version upon the system. The overall
system is planned to be in the formal of distributed architecture with
homogeneous database platform. The major objective of the overall system
is to keep the following components intact.
MS-ACCESS
What is a Database?
Computer databases can store data in different formats, from simple lines of
text (such as names and addresses) to complex data structures that include
pictures, sounds or video images. Databases arrange information in such a
way that any specific piece of information can be accessed if a reference
point is known.
Additional Information
1.Difference between data and database
You can create a database by using the Database wizard. The wizard lets you
choose from one of the built-in templates, and customize it to some extent. Then it
creates a set of tables, queries, forms, and reports, and also a switchboard for the
database. The tables do not have any data in them. Use this method if one of the built-in
templates closely match your requirements.
You can use a Database Wizard to create in one operation the required
tables, forms, and reports for the type of database you choose — this is the
easiest way to start creating your database. The wizard offers limited options to
customize the database.
2.In the New File task pane, under Templates, click On my computer.
3.On the Databases tab, click the icon for the kind of database you want to
create, and then click OK.
4.In the File New Database dialog box, specify a name and location for the
database, and then click Create.
2.In the New File task pane, under Templates, either search for a specific
template or click Templates on Office Online to browse for a suitable template.
If you want to start creating a database based on your design, create a blank
database, then add the tables, forms, reports, and other objects individually — this is the
most flexible method, but it requires you to define each database element separately.
2.In the New File task pane, under New, click Blank Database.
3.In the File New Database dialog box, specify a name and location for the
database, and then click Create.
What is a table?
Relational databases are constituted by one or more tables than contain the
information in an organized form. Databases usually contain more than one table and
each one will have a fixed number of fields.
Relationships in a Database:
One-To-Many Relationships
A one-to-many relationship is the most common type of relationship. In this
type of relationship, a row in table A can have many matching rows in table B, but a row
in table B can have only one matching row in table A. For example, the Publishers and
Titles tables have a one-to-many relationship: each publisher produces many titles, but
each title comes from only one publisher.
A one-to-many relationship is created if only one of the related columns is a primary
key or has a unique constraint.
In Access, the primary key side of a one-to-many relationship is denoted by a key
symbol. The foreign key side of a relationship is denoted by an infinity symbol.
Many-To-Many Relationships
n a many-to-many relationship, a row in table A can have many matching rows
in table B, and vice versa. You create such a relationship by defining a third table, called
a junction table, whose primary key consists of the foreign keys from both table A and
table B. For example, the Authors table and the Titles table have a many-to-many
relationship that is defined by a one-to-many relationship from each of these tables to
the TitleAuthors table. The primary key of the TitleAuthors table is the combination of
the au_id column (the authors table’s primary key) and the title_id column (the Titles
table’s primary key).
One-To-One Relationships
In a one-to-one relationship, a row in table A can have no more than one
matching row in table B, and vice versa. A one-to-one relationship is created if both of
the related columns are primary keys or have unique constraints.
This type of relationship is not common because most information related in this way
would be all in one table. You might use a one-to-one relationship to:
Divide a table with many columns
Isolate part of a table for security reasons.
Store data that is short-lived and could be easily deleted by simply
deleting the table.
Store information that applies only to a subset of the main table.
In Access, the primary key side of a one-to-one relationship is denoted by a key
symbol. The foreign key side is also denoted by a key symbol.
MODULE
DESCRIPTION
The total number of databases that were identified to build
system is 14. The major parts of the databases are
categorized as administration components and students and
faculty’s components. The administration components are
useful is managing the actual master data that may be
necessary to maintain the consistency of the system. These
databases are purely used for the internal organizational
needs and necessities.
Number Of Modules
Administrator Module:
This module deals with administrative strategies of the organization, which
involve checking out the student’s registrations, their admission details, and
authenticating them to access the information from the system. This
module also involves the maintenance of details of the students submitting
requests for the various certificates and permitting them accordingly to
have. This module is mainly designed to provide the validation check at the
administration level for every event generated at the front-end level.
TESTING
Testing
Testing is the process of detecting errors. Testing performs a very critical
role for quality assurance and for ensuring the reliability of software. The
results of testing are used later on during maintenance also.
Psychology of Testing
Testing Objectives
The main objective of testing is to uncover a host of errors, systematically
and with minimum effort and time. Stating formally, we can say,
Testing is a process of executing a program with the intent
of finding an error.
A successful test is one that uncovers an as yet
undiscovered error.
error, if it exists.
reliable standards.
Levels of Testing
In order to uncover the errors present in different phases we have
the concept of levels of testing. The basic levels of testing are as
shown below…
Client Needs
Acceptance
Testing
Requirements
System Testing
Design
Integration Testing
Unit Testing
Code
System Testing
The philosophy behind testing is to find errors. Test cases are devised with
this in mind. A strategy employed for system testing is code testing.
Code Testing:
This strategy examines the logic of the program. To follow this method we
developed some test data that resulted in executing every instruction in the
program and module i.e. every path is tested. Systems are not designed as
entire nor are they tested as single systems. To ensure that the coding is
perfect two types of testing is performed or for that matter is performed or
that matter is performed or for that matter is performed on all systems.
Types Of Testing
Unit Testing
Link Testing
Unit Testing
Link Testing
Link testing does not test software but rather the integration of each
module in system. The primary concern is the compatibility of each
module. The Programmer tests where modules are designed with
different parameters, length, type etc.
Integration Testing
After the unit testing we have to perform integration testing. The goal
here is to see if modules can be integrated proprerly, the emphasis
being on testing interfaces between modules. This testing activity can
be considered as testing the design and hence the emphasis on
testing module interactions.
In this project integrating all the modules forms the main system.
When integrating all the modules I have checked whether the
integration effects working of any of the services by giving different
combinations of inputs with which the two services run perfectly
before Integration.
This is a unit testing method where a unit will be taken at a time and tested
tested step wise every piece of code, taking care that every statement in
the code is executed at least once. The white box testing is also called Glass
Box Testing.
I have generated a list of test cases, sample data. which is used to check
all possible combinations of execution paths through the code at every
module level.
Symbols in DFD:
Data Flow :
Process :
Data Store :
Terminator :
Department Designation
Insert
Faculty Master
DFD For New Subject Under Course Entry
Course Subject
SubjectID
Insert
Course_Sub
Master
Course Semester
Insert
Examination
Master
DFD For New Exam Time Table Entry
Insert
Exam Time
Table
Insert
Exam Time
Table
DFD For New Faculty Course Entry
CourseMaster
Faculty Master
Faculty Course
Master
Validate FacultyID CourseID
Insert
Faculty Course
Master
DFD For New Faculty Subject Entry
Subject Master
Faculty Master
Faculty Course
Master
Validate FacultyID CourseID
Insert
Faculty Subject
Master
DFD For New Student Registration
Semester Master
Course Master
Student Master
Commi
t
Updatio
n Of
Data
Student Master
Subject Master
Student Master
Examination
Master
Commi
t
Updatio
n Of
Data
Examinantion
Master
DFD for Notes Submission By Faculty
Subject Master
Faculty Master
Faculty Notes
Master
Commi
t
Updatio
n Of
Data
Faculty Notes
Master
Generate Generate
Request for Fee Validate Fee Payment
Payment student ID()
Notes ID() ID()
Submission 10.3
10.1 10.2
Validate Fee
ID()
Commi
10.2
t
Updatio
n Of
Data
Faculty Notes Fee Master
Master
DATA DICTIONARY
LIST OF TABLES
TABLE NAME:DEPARTMENT_MASTER
TABLE NAME:DESIGNATION_MASTER
TABLE NAME:FACULTY_LOGIN
TABLE NAME:SEMISTER_MASTER
TABLE NAME:STUDENT_CERTIFICATES
TABLE NAME:FACULTY_MASTER
TABLE NAME:JOB_DETAILS
TABLE NAME:NOTIFICATION_MASTER
TABLE NAME:STUDENT_LOGIN
TABLE NAME:STUDENT_MARKS
TABLE NAME:STUDENT_MASTER
TABLE NAME:STU_NOTIFICATION_MASTER
TABLE NAME:SUBJECT_MASTER
1.CourseMasterServlet.java
/*StudentLoginServlet.java*/
import conpack.Conn;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
res.setContentType("text/html");
if (action.equals("Insert"))
{
java.sql.Connection con=Conn.getCon();
java.sql.Statement st=con.createStatement();
String sss="insert into course_master
values('"+cid+"','"+cname+"','"+cshort+"','"+cdesc+"',"+cfee+")";
System.out.println(sss);
int c=st.executeUpdate(sss);
System.out.println("IIIIIIIIIIIIIIIII"+c);
if (c==1)
{
RequestDispatcher
rd=req.getRequestDispatcher("CourseInsertSuc.html");
rd.include(req,res);
}//if
else
{
RequestDispatcher
rd=req.getRequestDispatcher("AdminCourseMasterEntry.jsp");
rd.include(req,res);
out.println("<p><font color=\"#FF0000\">* Invalid
Operaion<br>* Try Once Again</font></p>");
return;
}
}
else
{
RequestDispatcher
rd=req.getRequestDispatcher("AdminCourseMasterEntry.jsp");
rd.include(req,res);
out.println("<p><font color=\"#FF0000\">* Invalid
Operation<br>* Try Once Again</font></p>");
return;
}
}
catch (Exception e)
{e.printStackTrace();
RequestDispatcher
rd=req.getRequestDispatcher("AdminCourseMasterEntry.jsp");
rd.include(req,res);
out.println("<p><font color=\"#FF0000\">* Invalid
Operation<br>* Try Once Again</font></p>");
return;
}
}
}
2. SubjectMasterServlet.java
/*StudentLoginServlet.java*/
import conpack.Conn;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
{PrintWriter out=res.getWriter();
try
String sid=req.getParameter("sid");
String
sname=req.getParameter("sname");
String
slname=req.getParameter("slname");
String sdes=req.getParameter("sdes");
String action=req.getParameter("action");
res.setContentType("text/html");
out.println(sid+"<br>");
out.println(sname+"<br>");
out.println(slname+"<br>");
out.println(action+"<br>");
if (action.equals("Insert"))
java.sql.Connection
con=Conn.getCon();
java.sql.Statement
st=con.createStatement();
System.out.println(sss);
int c=st.executeUpdate(sss);
System.out.println("IIIIIIIIIIIIIIIII"+c);
//con.close();st.close();
if (c==1)
{
RequestDispatcher
rd=req.getRequestDispatcher("SubjectInsertSuc.html");
rd.include(req,res);
}//if
else
RequestDispatcher
rd=req.getRequestDispatcher("AdminSubjectMasterEntry
.jsp");
rd.include(req,res);
out.println("<p><font
color=\"#FF0000\">* Invalid Operaion<br>* Try Once
Again</font></p>");
return;
else
RequestDispatcher
rd=req.getRequestDispatcher("/AdminSubjectMasterEntr
y.jsp");
rd.include(req,res);
out.println("<p><font
color=\"#FF0000\">* Invalid Operation<br>* Try Once
Again</font></p>");
return;
}
catch (Exception e)
{e.printStackTrace();
RequestDispatcher
rd=req.getRequestDispatcher("/AdminSubjectMasterEntr
y.jsp");
rd.include(req,res);
out.println("<p><font
color=\"#FF0000\">* Invalid Operation<br>* Try Once
Again</font></p>");
return;
}
FORMS AND
REPORTS
1.Homepage
2.Login Page
3.Student Page
4.Student Registration Page
11.Course
12.Course Deatils
15.Subject Details
16.Subject Entry Form
19.About Us
20.About College
21.Infrastructure
22.Courses
23.Faculty
24.Library
25.Corporate Login
26.Corport Login Report
27.Job Details
28.Company Profile
29.Student Details
30.Student Login
31.Student Information
32.Certificates Application
33.MarkList
34.Job Information
37.Student Details
FUTURE SCOPE
FUTURE UPGRADES:
This system can be upgraded in the future. The Future system will
be connected to online and perform all the transactions directly from the
Main System database which facilitates the full control to the authorities
over the sub systems. All the Transactions performed everywhere can be
easily known from the main System.
User Manual
The entire application has been designed using Ms-access as back end and
using the graphical features of HTML and dynamism through the JSP
provides the front end user interface.
SUMMARY CONCLUSION:
This Student Portal is developed using Java. So it can operate
effectively and efficiently on any platform with out any modifications. It
facilitates fast, secure, reliable and efficient Management to the end users.
Using this application the higher authorities have the full control on all
parts of the undergoing systems. This System provides the full security and
is free from malpractice in the Student Portal.
BIBLIOGRAPHY