updateTest.jsp 926 B

123456789101112131415161718192021222324252627282930313233343536
  1. <%@page language="java" pageEncoding="UTF-8"%>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title>Test</title>
  7. <!--框架必需start-->
  8. <%@include file="/page/include1.jsp" %>
  9. <!--框架必需end-->
  10. <script type="text/javascript">
  11. $(function(){
  12. /* $.post($.pathname() +"/ws/test/TestService/test/", {
  13. }, function(result) {
  14. if (result.Msg.sucsess == true) {
  15. alert("成功");
  16. } else {
  17. alert("失败");
  18. }
  19. }, "json"); */
  20. var url = $.pathname() + '/ws/test2/TestService2/test2/';
  21. $.ajax({
  22. url : url,
  23. type : 'post',
  24. dataType : 'json',
  25. success : function(data){
  26. alert("修改成功!");
  27. }
  28. });
  29. });
  30. </script>
  31. </head>
  32. <body >
  33. </body>
  34. </html>