0% found this document useful (0 votes)
163 views5 pages

National University of Modern Languages: Complex Computing Problem (CCP)

The document describes the components and architecture of a user management application built with Java technologies. It discusses setting up the database, creating Java classes to interact with it, handling errors, adding necessary libraries, developing servlets to handle requests, using JSP pages for the UI, and configuring the application in the WEB-INF directory. The index.html file acts as the landing page that users first see when accessing the application.

Uploaded by

Hanzala Amir
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
163 views5 pages

National University of Modern Languages: Complex Computing Problem (CCP)

The document describes the components and architecture of a user management application built with Java technologies. It discusses setting up the database, creating Java classes to interact with it, handling errors, adding necessary libraries, developing servlets to handle requests, using JSP pages for the UI, and configuring the application in the WEB-INF directory. The index.html file acts as the landing page that users first see when accessing the application.

Uploaded by

Hanzala Amir
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

User Management System

National University of Modern


Languages

Complex Computing Problem (CCP)

Submitted To: Sir Ahmed


Submitted By:
Hanzala Amir RC-298

Shahmir Khan Rc-320

Faheem kiyani RC-305

Zohaib Asraaf RC-303

1
User Management System

Complex Computing Problem (CCP)


The CCP is about the User Management Application is a Java-based web
application built to perform CRUD (Create, Read, Update, Delete) operations on a
database. The application runs in NetBeans integrated development environment
(IDE) and utilizes GlassFish Server as the application server. This guide provides a
step-by-step explanation of the various components involved in building this
application.

I. Java Database Connectivity (JDBC):

JDBC is a Java API that allows Java programs to interact with databases.

It provides methods to connect to a database, execute SQL queries, and handle


database transactions.

The Java Database is a component that provides the underlying data storage for the
CCP User Management App. It can be any relational database system such as
MySQL, PostgreSQL, or Oracle. The Java Database stores user information,
including attributes like username, password, email, and other relevant details.

Setting up the Database:

Create a Java database using a preferred database management system (e.g.,


MySQL, PostgreSQL).

Design the required tables and establish appropriate relationships between them.

Java Classes (DAO):

Data Access Objects (DAO) classes are responsible for interacting with the
database.

Create Java classes to represent entities in the database, such as User, with
corresponding CRUD operations.

2
User Management System

Each DAO class contains methods to insert, retrieve, update, and delete records
from the database.

II. Error Handling and Exception Pages:

Error.jsp:

Create an error.jsp file to handle exceptions and display error messages.

Include appropriate HTML and JSP code to present user-friendly error pages.

III. Libraries:

Utilize necessary libraries and dependencies for JDBC and database connectivity.

These dependencies are added to the project's classpath to enable seamless


interaction with the database.

The Lib directory within WEB-INF holds the required Java libraries (JAR files)
needed by the application. It includes external libraries, such as JDBC drivers
specific to the Java Database being used. These libraries provide additional
functionality and enable seamless integration with external systems

IV. Servlets:

Servlets are Java classes that extend the capabilities of servers and respond to
incoming HTTP requests.

They are responsible for handling user interactions, processing requests, and
generating responses.

Creating Servlets:

Create Java servlet classes to handle different operations such as creating,


retrieving, updating, and deleting users.

Servlets receive data from JSP forms or URLs, process the data, and communicate
with DAO classes.

V. JSP (JavaServer Pages):

3
User Management System

JSP is a technology that enables the creation of dynamic web pages with Java code
embedded within HTML.

JSP pages are responsible for displaying data, capturing user input, and
communicating with servlets.

JavaServer Pages (JSP) is a technology that allows developers to combine HTML


and Java code to generate dynamic web pages. In the CCP User Management App,
JSP is used to create user interfaces for different functionalities. It allows for the
presentation of user information, forms for data input, and feedback messages. JSP
tags are employed to embed Java code within the HTML markup, enabling
dynamic content generation.

Creating JSP Pages:

Develop JSP pages to provide a user interface for the application.

Include HTML code for designing the layout and Java code to interact with
servlets for data processing.

VI. WEB-INF:

Configuration Files:

WEB-INF is a directory in the web application root that contains configuration


files.

Place web.xml file in WEB-INF to configure the application, define servlet


mappings, and specify error pages.

VII. index.html:

index.html is the default landing page of the application.

It provides links and navigation options for users to access different sections of the
application.

The index.html file serves as the default home page for the web application. It is
the initial page that users encounter when accessing the application's URL. In the
CCP User Management App, the index.html file acts as the landing page and

4
User Management System

provides an introductory message or navigation links to different functionalities of


the app.

Designing the Homepage:

Develop an index.html file with appropriate HTML code to create an intuitive and
user-friendly landing page.

You might also like