日期:2014-05-17 浏览次数:20718 次
<servlet>
<description>This is the description of my J2EE component</description>
<display-name>This is the display name of my J2EE component</display-name>
<servlet-name>SaveFirewallPlan</servlet-name>
<servlet-class>com.ultrapower.db.servlet.CallFirewallServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>SaveFirewallPlan</servlet-name>
<url-pattern>/Save/FirewallPlan</url-pattern>
</servlet-mapping>
$.ajax({
type: "post",
url: "Save/FirewallPlan",
dataType: "xml",
async: false,
data : {"OrderID":order_id, "res_addr": send_man, "res_ip1": fun_inter},
timeout: 1000,
success: function(data){
}, error: function(){
alert("调用失败");
}
})
public class CallFirewallServlet extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
doPost(request,response);
}
}