‘ProcessRequestServlet’ code
public void doPost(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException
String PIN = request.getParameter("Pin");
String password = request.getParameter("Password");
SecurityID id = new SecurityID
(password, Integer.parseInt(PIN));
BankAccount account = getHost().getAccount(id);
The servlet picks up the password and PIN from the request parameters and uses them to attempt to retrieve an account object from the ‘Host’