if (null != request.getParameter("logout")) { env.setUser("robot"); env.setPassword(""); } String title="P4JSP login";

Login:

String dest = request.getParameter("dest"); if (null != dest) { out.println("<INPUT type=\"hidden\" name=\"dest\" value=\""+dest+"\"/>"); }
P4USER:
P4PASSWD: