<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
<!DOCTYPE html>
|
<html>
|
<head>
|
<title>班组管理</title>
|
<jsp:include page="../../../initlib/initAll.jsp"></jsp:include>
|
<script type="text/javascript">
|
|
$(function () {
|
|
$("#method").combobox({
|
url: '${pageContext.request.contextPath}/pms/test/getAllMethods.do',
|
valueField:'id',
|
textField:'text',
|
panelHeight:200
|
})
|
|
$("#btn").click(function(){
|
var method = $("#method").combobox('getValue');
|
var xml = $("#xml").val();
|
$.ajax( {
|
type:'POST',
|
url:'${pageContext.request.contextPath}/pms/test/sendMsg.do',// 跳转到 action
|
data:{"method":method,"xml":xml},
|
success:function() {
|
alert("发送成功!")
|
},error:function() {
|
alert("发送异常!");
|
}
|
});
|
})
|
});
|
|
|
</script>
|
</head>
|
<body class="easyui-layout" data-options="fit : true,border : false" style="align-items: center">
|
<div style="margin: 50px">
|
XML内容:
|
<br>
|
<br>
|
<textarea id="xml" name="xml" style="width: 900px; height: 300px"></textarea>
|
<br>
|
<br>
|
接口:<input id="method" name = "method" style="width: 250px">
|
<input type="button" id="btn" value = "发送">
|
|
|
|
|
</div>
|
</body>
|
</html>
|