I am new to Java Servlets and I just want to ask help on how to do this particular exercise.
1.) Create a project in Eclipse. Name it ServletActivity 1 – Login Application.
2.) Create an HTML file which accepts a Username and Password. Name it “input.html”. Add a “Submit” button inside the HTML. Enclose the Submit Button and User Name and Password field inside a form. See Screenshot 1.
3.) Create a java servlet class and name it “DisplayServlet.java”. This servlet should be called upon clicking the Submit button in input.html. This servlet should display “Welcome <Username that the user entered in input.html>” (See Screenshot 2). If the user did not enter any username or password, display an error message (See Screenshot 3). Use response.getWriter() to output your responses. Use also request.getParameter(..) to retrieve the values of username and password from input.html.
4.) Configure your DisplayServlet.java servlet in web.xml. Deploy and test the application.
I know this sounds too simple for you, but I really don't have a clue on how to do this. I already have my Eclipse setup with JBoss server. Thanks in advance!