123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
- <%
- String path = request.getContextPath();
- String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
- String loginName = request.getParameter("loginName");
- %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <base href="<%=basePath%>">
-
- <title>My JSP 'index.jsp' starting page</title>
-
- <meta http-equiv="pragma" content="no-cache">
- <meta http-equiv="cache-control" content="no-cache">
- <meta http-equiv="expires" content="0">
- <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
- <meta http-equiv="description" content="This is my page">
- <!--
- <link rel="stylesheet" type="text/css" href="styles.css">
- -->
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/jquery.js"></script>
- <script type="text/javascript" >
- function login() {
-
- alert("123123");
- alert('<%=loginName%>');
- //window.location="/nwyj/page/frameWork.html";
- var loginName = ('<%=loginName%>')
- var password = '123';
- alert(loginName);
- //登录处理
- $.ajax({
- type: "POST",
- url:"/nwyj/ws/sys/LoginService/Login",
- data: {"username":loginName.value,"password":password},
- success: function(data){
- window.name = JSON.stringify(data);
- window.location="/nwyj/page/frameWork.html";
- }
- });
- alert(loginName);
-
- }
- </script>
- </head>
-
- <body onload="login()">
-
- </body>
- </html>
|