Ask a question from expert

Ask now

Design and Coding Techniques for a Web Application

7 Pages1233 Words97 Views
   

Added on  2019-09-22

About This Document

This article discusses the design and coding techniques used in developing a web application using JSP and Servlet technology with MySql as the backend database. It also suggests the use of design patterns for better management of the application.

Design and Coding Techniques for a Web Application

   Added on 2019-09-22

BookmarkShareRelated Documents
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
Design and Coding Techniques for a Web Application_1
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 useThe 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 whichuser 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.
Design and Coding Techniques for a Web Application_2
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.Architecture ModelCritical analysis of solutionIssues:a)The currently system is very basic there are different Jsp forms for eachfunctionality and different Servlet classes for each form. So if in future we have toadd more functionalities in any form or have to designed new form to implementthose functionalities then this should be crucial to manage the functionalitiesrelated forms and classes names because in my project there are separate Servletclasses for each and every Jsp forms, there could be confusion which form isrelated to which Servlet classes.b)In my code there is bidirectional connection between my Jsp web form and Servlet action classes. This code become very fizzy or complex to understand the flow of project in large project Suggestion: a)For the first problem I can to one thing I will group all classes in one packageaccording to their type so that it will become easy to track each and every classwhether it is view related or controller or model related.b)For the second problem I can distribute my code work in separate files so that itbecomes easy to track data flow from one form to another and one class toanother class, for this I will use html file for view section and Jsp file for
Design and Coding Techniques for a Web Application_3

End of preview

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

Related Documents
Assignment On JSP & Servlet Technology
|18
|2498
|332

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

Brothers Restaurant System
|10
|947
|27

Java Programming with Spring Boot Framework
|5
|580
|442