Web Enabled Reporting Prototype Using Jsp Computer Science Essay

Published:

This essay has been submitted by a student. This is not an example of the work written by our professional essay writers.

This Report describes a web-enabled reporting prototype consisting of Java Server Pages (JSP ), Servlet . This lightweight prototype allows users to processing and retrieves results through the standard browser interface. It shows that all tasks such as verifying login, registering new users, accessing database tables can be implemented by JavaServer Pages and Servlet interacting with web server, relational databases.

INTRODUCTION

One of the strongest capabilities of Java is its information processing power. On the other hand, web technologies allow for the most effective way of delivery and distribution of information. Combining the best of both worlds, we can build powerful information delivery applications. Advantages of such applications also include standardized user interface to access information sources, reduced client-side software and maintenance, centralized processing and increased security features. In addition, by adding a database tier to the design, we demonstrate that access control and user authentication can be implemented through a relational database.

IMPLEMENTATION

In this application, we have created a JSP pages for user interface, and servlets for processing the data and with database. Index page have two links one is for Login and another is for Registration for using the functionality of application. A user has to register him. The JSP pages will communicate to the servlet for processing of result and database communication and after that corresponding result page will be shown.

Class Diagram for User Registration

Person

+ name:String

+ address:String

+ city:String

+ pin:String

+ state:String

+ gender:String

+ email:String

+ phone:String

com.portal.server.user

User

 username:String

 password:String

 seqQues:String

 seqAns:String

+ getPassword()

+ setPassword()

+ getUsername()

+ setUsername()

+ setSeqques()

+ getSeqans()

+ setSeqans()

+ getSeqans()

+

+

The class diagram shown above is implemented in Register.java for encapsulation implementation. Flow of application is shown below. How one page moves to another page is described in the below figure.

RegisterSuccess.jsp

Database

Home.jsp

Login.java

Register.java

Browser

Index.jsp

Register.jsp

Login.jsp-

The above diagram shows the entire flow of application. When application starts its index page is displayed in the browser. On the index page there is two another links one is for registration of user and another is for sign in if user already register. To access the functionality of application the user has to register him first. When user clicks on Register link Register.jsp page will be displayed in the browser window. Then user has to fill all his details and submit the page the data of the registration page is inserted in the database with the help of Register.java servlet and show the desired result RegisterSuccess.jsp. On RegisterSuccess.jsp there is a link to sign in to application. After sign in to the application user moves to the home page of the application. If user is already registered then he can directly sign in from index page.

Design and Implementation difference

We have design the System in Java. According to the class diagram we have a class person that has the attributes that is common to the person. The second class user extends the person class means all its attributes and behavior. We have used both the classes for registration of user on the application beside that we have also use JSP technology for user interface of the application. These are some of the benefits of using JSP.

Nobody can borrow the code: The code written runs and remains on the Web server. All of its functionality is handled before the page is sent to the browser.

Faster loading of pages: With JSP, decisions can be made about what the user wants to see at the Web server prior the pages being dispatched. Hence, only the content that the user is interested in will be dispatched to the user, with no extra code or extra content.

JSPs provide a nice clean separation of the application's presentation layer from its data manipulating layer. That's why we have used JSP technology in our application.

We have used java classes and methods for getting and setting the values of attributes. So Encapsulation of Java has been implemented in our application. We have implemented this in a web application So there we have used JSP pages for Presentation, java Classes and servlets for processing of the request and get the desired results from database and transfer the user to the desired result page. We also have used JavaScript for client side validation of forms. Before submitting the data it is properly validated, it will provide us error free application.

When application starts its index page is displayed in the browser. On the index page there is two another links one is for registration of user and another is for sign in if user already register. To access the functionality of application the user has to register him first. When user clicks on Register link Register.jsp page will be displayed in the browser window. Then user has to fill all his details and submit the page the data of the registration page is inserted in the database with the help of Register.java servlet and show the desired result RegisterSuccess.jsp. On RegisterSuccess.jsp there is a link to sign in to application. After sign in to the application user moves to the home page of the application. If user is already registered then he can directly sign in from index page.

CONCLUSION

This prototype is simple and easy to deploy, while it allows users to fully customize the user interface through HTML and JSP programming and implement their reporting requirements through Servlet and Java Class. This prototype can be easily expanded to meet more complicated business rules.

Writing Services

Essay Writing
Service

Find out how the very best essay writing service can help you accomplish more and achieve higher marks today.

Assignment Writing Service

From complicated assignments to tricky tasks, our experts can tackle virtually any question thrown at them.

Dissertation Writing Service

A dissertation (also known as a thesis or research project) is probably the most important piece of work for any student! From full dissertations to individual chapters, we’re on hand to support you.

Coursework Writing Service

Our expert qualified writers can help you get your coursework right first time, every time.

Dissertation Proposal Service

The first step to completing a dissertation is to create a proposal that talks about what you wish to do. Our experts can design suitable methodologies - perfect to help you get started with a dissertation.

Report Writing
Service

Reports for any audience. Perfectly structured, professionally written, and tailored to suit your exact requirements.

Essay Skeleton Answer Service

If you’re just looking for some help to get started on an essay, our outline service provides you with a perfect essay plan.

Marking & Proofreading Service

Not sure if your work is hitting the mark? Struggling to get feedback from your lecturer? Our premium marking service was created just for you - get the feedback you deserve now.

Exam Revision
Service

Exams can be one of the most stressful experiences you’ll ever have! Revision is key, and we’re here to help. With custom created revision notes and exam answers, you’ll never feel underprepared again.