#interview #Question: What is #Error- #Servlet? #Advance #java #servlet #programming #tutorial #Answer :
The servlet program that executes only when exception is raised in other main servlet programs is called "Error-Servlet".
The Error-Servlet is useful to display non-technical guiding messages for end-users when exception is raised in the java web application.
Its always recommended to develop java web application by keeping non-technical end-users in mind. For this dont display technical error messages OR blank screen/contents on browser window when exceptions are raised. Instead of that display error-page having guideline messages to end-user when exception's are raised other main servlet programs.
Always place requestDispatcher.forward(request, response) method in source servlet program as a conditional statment to execute, due to this HTML output of source program will be discarded only when condition is satisfied otherwise output/partial output goes to browser window.
#Example Java web applicaiton - How to configure Error-Servlet when exception is raised in other Servlet programs:
Sur cette page du site, vous pouvez voir la vidéo en ligne 129 What is Error Servlet | Adv java servlet programming tutorial | advance java servlet durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur tech fort 21 décembre 2018, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 210 fois et il a aimé 32 téléspectateurs. Bon visionnage!