📄 login-config.jsp
字号:
<%@ page contentType="text/html; charset=UTF-8" %><%@ taglib uri="http://www.bstek.com/dorado" prefix="d" %><html><head><title>Login</title></head><body><%String user = null;String organization = null;String product = null;String role = null; user = request.getParameter("user");organization = request.getParameter("organization");product = request.getParameter("product");role = request.getParameter("role");//String password = request.getParameter("password"); if( ( product==null || product.equals("") ) || ( (user==null || user.equals("")) && (organization==null || organization.equals("")) && (role==null || role.equals("")) ) ){%> <hr> <form action="login-config.jsp" method="post"> <table> <tr> <td>User:</td> <td><input type="text" name="user" /></td> </tr> <tr> <td>Organization:</td> <td><input type="text" name="organization" /></td> </tr> <tr> <td>product:</td> <td><input type="text" name="product" /></td> </tr> <tr> <td>role:</td> <td><input type="text" name="role" /></td> </tr> </table> <hr> <input type="submit" value="login" /> </form> <% }else{ session.setAttribute("product",product); if(organization!=null) session.setAttribute("organization",organization); if(user!=null) session.setAttribute("user",user); if(role!=null) session.setAttribute("role",role); response.sendRedirect("../fleetagreement/main.jsp"); } %></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -