loginhandler.jsp
来自「Begining JSP Web Development外文书籍源代码」· JSP 代码 · 共 20 行
JSP
20 行
<%
String username = request.getParameter("username");
String password = request.getParameter("password");
if ((username.equalsIgnoreCase("wrox")) &&
(password.equalsIgnoreCase("wrox"))) {
out.println("<H3>MAIN MENU</H3>");
out.println("<A href=getphonelist.jsp>Get Employee Phone No. List</a>"
+ "<BR>");
out.println("<A href=getsortedphonelist.jsp>"
+ "Get Sorted Phone No. List (Sorted by EmployeeName)</a>"
+ "<BR>");
out.println("<A href=search.jsp>Search for Phone No. List</a>"
+ "<BR>");
} else {
out.println("UserName/Password combination is incorrect !!!");
out.println("<a href=login.jsp>Try Again</a>");
}
%>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?