logo

Assignment On JSP & Servlet Technology

   

Added on  2019-09-26

18 Pages2498 Words332 Views
ContentsOverview of approach to development and general rational......................................................................1Detail of design and coding techniques used and reasoning behind their use............................................1The design/coding techniques:................................................................................................................1Why I chose this technique:....................................................................................................................1Evidence:.................................................................................................................................................1Conclusion:..........................................................................................................................................2Architecture Model.....................................................................................................................................2Critical analysis of solution..........................................................................................................................2Issues:......................................................................................................................................................2Suggestion:..............................................................................................................................................3Suggested use of design patterns................................................................................................................3Jsp/Servlet Pattern with HTML................................................................................................................3EJB design patterns..................................................................................................................................4References...................................................................................................................................................6

Overview of approach to development and general rationalI have used object oriented approach. . I have used Jsp and servlet technology to developthis application. I have used MySql as backend database.All forms are separatelydesigned and their actions are performed by Servlet classes and they are separatelyrelated to different Jsp pagesDetail of design and coding techniques used and reasoning behind their useI have used singleton design pattern. Coding Techniques: The design/coding techniques:I have followed partial object oriented approach.Why I chose this technique:My application is not so big and also only I havedesigned this whole code. This project is not so big. This has simple and littlefunctionality to implement so I make this simple by implementing very basic codingtechniques.Evidence: as you can see in my code there are only two types of file I used and they are: Jsp and Servlet type. In this project, all Jsp files are located in WEB-INF folder whichrepresents the web forms where users can interact with my web application. And allservlet classes are placed in Source Packages’ default packages; here my all servletclasses are model type these interact with database and perform all actions and directcontact with Jsp forms by calling them. In my project code there are no controller classesbecause my web application is very simple with the little functionalities so all Jsp formsdirectly interact with the Servlet classes and all Servlet classes directly interact with Jspforms.For example:register.jsp form directly interacts with the AddNewUser.java Servlet classWhen user fill the all details mentioned in the register.jsp form and click onregister button then form action call will redirect to AddNewUser.java Servletclass where all parameters are get and then they are saved to database and afterthis the call is redirect to index.jsp where user can login and can go further relatedpages.When user click on the login button then other login.jsp page is called and theuser will be identified in this page and then call will be redirect to that page which

user belong to, for example if user is admin then admin.jsp page will called or ifuser is normal user(customer) then userPanel.jsp will called.Conclusion: So there is bidirectional relatioin in my view classes and model classes because there are no controller classes in between them. I followed this architecture because this project is small and this become easy for me by designing this project in this manner.Here are code snippets which are specifying which jsp form is linked which servlet class. 1.This is index.jsp page which shows a login page with the register here link.If there is a new user then he/she go with “Register Here” link and then he/she can register first When user click on register here link then he/she will redirect to a different jsp pagethat is for user registration.

When user clicks on submit button then all the user information will saved by AddNewUser.java class.After successful registration the user will move to index.jsp page again where he/shecan login to get in the system or get his/her menu.

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Design and Coding Techniques for a Web Application
|7
|1233
|97

Desklib Online Library for Study Material with Solved Assignments
|21
|958
|347

Enterprise Software Development Assignment
|7
|1200
|42

SMS Manager - A Web Application for Saving and Sharing Messages
|7
|2711
|153

Create Dynamic Web Pages
|9
|1978
|464

Brothers Restaurant System
|10
|947
|27