67,512
社区成员
发帖
与我相关
我的任务
分享
<%@ page language="java" import="java.util.*" pageEncoding="gbk"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<script type="text/javascript">
var path = '<%=path%>';
var basePath = '<%=basePath%>';
function ttt(){
var pConnection = new Ext.data.Connection({timeout:1200000});
pConnection.request({
method: 'POST',
url: path + '/testAction.do?method=tt',
params: null,
success: function(response, options)
{
alert(response.responseText);
var jsonData = Ext.util.JSON.decode(response.responseText);
alert(jsonData.aa);
},
failure: function(response, options)
{
alert("big fail!");
}
});
}
</script>
<html>
<head>
<base href="<%=basePath%>">
<title>aa</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" href="<%=basePath%>/css/common.css">
<link rel="stylesheet" href="<%=basePath%>/css/default.css">
<link rel="stylesheet" href="<%=basePath%>/css/ext-all.css">
<link rel="stylesheet" href="<%=basePath%>/css/waitbar.css">
<script type="text/javascript" src="<%=basePath%>/js/ext-all.js"></script>
<script type="text/javascript" defer="defer" src="<%=basePath%>/calendar/WdatePicker.js"></script>
<script type="text/javascript" src="<%=basePath%>/js/waitbar.js"></script>
</head>
<body>
<form action="">
<div>
commons-beanutils-1.8.0.jar</br>
commons-collections-3.2.jar</br>
commons-lang.jar</br>
commons-logging-1.0.4.jar</br>
ezmorph-1.0.6.jar</br>
json-lib-2.1-jdk15.jar</br>
jar包要齐全
</div>
<input type="button" id="testAction" name="testAction" value="测试" onclick="ttt()" />
</form>
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="gbk"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<script type="text/javascript">
var path = '<%=path%>';
var basePath = '<%=basePath%>';
function ttt(){
var pConnection = new Ext.data.Connection({timeout:1200000});
alert(path + '/testAction.do?method=tt');
pConnection.request({
method: 'POST',
url: path + '/testAction.do?method=tt',
params: null,
success: function(response, options)
{
var jsonData = Ext.util.JSON.decode(response.responseText);
alert(jsonData);
},
failure: function(response, options)
{
alert("big fail!");
}
});
}
</script>
<html>
<head>
<base href="<%=basePath%>">
<title>aa</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" href="<%=basePath%>/css/common.css">
<link rel="stylesheet" href="<%=basePath%>/css/default.css">
<link rel="stylesheet" href="<%=basePath%>/css/ext-all.css">
<link rel="stylesheet" href="<%=basePath%>/css/waitbar.css">
<script type="text/javascript" src="<%=basePath%>/js/ext-all.js"></script>
<script type="text/javascript" defer="defer" src="<%=basePath%>/calendar/WdatePicker.js"></script>
<script type="text/javascript" src="<%=basePath%>/js/waitbar.js"></script>
</head>
<body>
<form action="">
<input type="button" id="testAction" name="testAction" value="测试" onclick="ttt()" />
</form>
</body>
</html>