Professional Documents
Culture Documents
COLLEGE
GHAZIABAD,UTTAR PRADESH
NAME : Anubhav Gautam
ROLL NO : 1802710023
JSP architecture is a 3 tier architecture. It has a Client, Web Server, and Database. The
client is the web browser or application on the user side. Web Server uses a JSP Engine
i.e; a container that processes JSP. JSP Engine intercepts the request for JSP and
provides the runtime environment for the understanding and processing of JSP files. It
reads, parses, build Java Servlet, Compiles and Executes Java code, and returns the
HTML page to the client. The webserver has access to the Database.
4. Elements of JSP
● JSP Declaration <%! declarations %>
JSP Scriplet : - The scriptlet tag allows writing Java code statements within the JSP page. This tag is
responsible for implementing the functionality of _jspService() by scripting the java code.
JSP comments : - JSP comments marks text or statements the web container should ignore
JSP Expression : - Expressions elements are responsible for containing scripting language expression,
which gets evaluated and converted to Strings by the JSP engine and is meant to the output stream of the
response.
Exception Handling
In, JSP there are two ways to perform
Servlet Exception Handling, An
exception handling.
Servlet Exception Handling can be
defined as an event which will be 1. By errorPage and isErrorPage
occurring while the program executes attributes of page directive.
Exception is a common problem while
executing the programs so where 2. By <error-page> element in
developer will use to try and catch web.xml.
blocks to resolve the error.
What is Struts?
Struts is an open source framework that
extends the Java Servlet API and
employs a Model, View, Controller
(MVC) architecture. It helps in creating
maintainable, extensible, and flexible
web applications based on standard
technologies, such as JSP pages,
JavaBeans, resource bundles, and
XML.
Admin
Class diagram
Activity Diagram
Code of the Project-
Project Snapshots
Login
Page
On entering login On entering wrong
details login details
Admin can create staff Admin can browse staff details
Admin can delete any staff Admin can Browse books
Fill Book details and after that it looks
like this:
Login as a library member.
Incorrect
details
Member can search for
books
Member can issue books
Normal visitors can only see the
book details.
THANK YOU.