input2.jsp

来自「JSP初学者」· JSP 代码 · 共 18 行

JSP
18
字号
<%@ page language="java" contentType="text/html; charset=GBK"%><html><head><title>登录处理页面</title></head><body><%request.setCharacterEncoding("GBK");String name = request.getParameter("userName");String pwd = request.getParameter("pwd");if(name.equals("yu")&&pwd.equals("yu")){	response.sendRedirect("welcome.jsp");if(name.equals("")||pwd.equals(""))       //??????????   //response.sendRedirect("login.jsp");    alert("请输入密码");} %></body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?