Login.jsp
上传用户:greengl
上传日期:2017-12-31
资源大小:13653k
文件大小:1k
源码类别:

Ajax

开发平台:

Java

  1. <%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
  2. <%@ taglib prefix="s" uri="/struts-tags"%>
  3. <%
  4. String path = request.getContextPath();
  5. String basePath = request.getScheme() + "://"
  6. + request.getServerName() + ":" + request.getServerPort()
  7. + path + "/";
  8. %>
  9. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  10. <html>
  11. <head>
  12. <base href="<%=basePath%>">
  13. <title>My JSP 'Login.jsp' starting page</title>
  14. <meta http-equiv="pragma" content="no-cache">
  15. <meta http-equiv="cache-control" content="no-cache">
  16. <meta http-equiv="expires" content="0">
  17. <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
  18. <meta http-equiv="description" content="This is my page">
  19. <!--
  20. <link rel="stylesheet" type="text/css" href="styles.css">
  21. -->
  22. </head>
  23. <body>
  24. <s:form action="login" method="post" >
  25. <s:textfield name="userName" label="帐号"></s:textfield>
  26. <s:fielderror>
  27. <s:param>userName</s:param>
  28. </s:fielderror>
  29. <br>
  30. <s:password name="password" label="密码"></s:password>
  31. <s:submit value="登录" />
  32. </s:form>
  33. </body>
  34. </html>