In this HW, we are validating the user name and password entered by the user. If the user name and password are correct, it will forward the request to the WelcomeServlet, otherwise will show an error message: “Sorry username or password are not correct". In this HW, you have created following files: index.html: for getting input from the user. Login.java: a servlet class for processing the response. If the user name equals to your name and the password is equals to your student ID, it will forward the request to the welcome servlet. WelcomeServlet.java: a servlet class for displaying the welcome message (Welcome [user name]). web.xml: a deployment descriptor file that contains the information about the servlet.

EBK JAVA PROGRAMMING
8th Edition
ISBN:9781305480537
Author:FARRELL
Publisher:FARRELL
Chapter16: Graphics
Section: Chapter Questions
Problem 1DE
icon
Related questions
Question
100%
HW1: RequestDispatcher in Java Servlet
In this HW, we are validating the user name and password entered by the user. If the user name
and password are correct, it will forward the request to the WelcomeServlet, otherwise will show
an error message: “Sorry username or password are not correct".
In this HW, you have created following files:
index.html: for getting input from the user.
Login.java: a servlet class for processing the response. If the user name equals to your name and
the password is equals to your student ID, it will forward the request to the welcome servlet.
WelcomeServlet.java: a servlet class for displaying the welcome message (Welcome [user
name]).
web.xml: a deployment descriptor file that contains the information about the servlet.
Transcribed Image Text:HW1: RequestDispatcher in Java Servlet In this HW, we are validating the user name and password entered by the user. If the user name and password are correct, it will forward the request to the WelcomeServlet, otherwise will show an error message: “Sorry username or password are not correct". In this HW, you have created following files: index.html: for getting input from the user. Login.java: a servlet class for processing the response. If the user name equals to your name and the password is equals to your student ID, it will forward the request to the welcome servlet. WelcomeServlet.java: a servlet class for displaying the welcome message (Welcome [user name]). web.xml: a deployment descriptor file that contains the information about the servlet.
Expert Solution
steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
Files and Directory
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,