首页 > 其他 > 详细

电力项目八--运行监控的保存

时间:2017-05-20 22:24:37      阅读:335      评论:0      收藏:0      [点我收藏+]

需求分析:保存运行监控文本内容到数据库,并再次查询后回显。

 页面中调用保存的函数

 function checkchar(){
  
          if(document.Form2.stationRun.value.length>2500){
      
             alert("站点运行情况字数不能超过2500字");
             return;
          }
          if(document.Form2.devRun.value.length>2500){
      
             alert("设备运行情况字数不能超过2500字");
             return;
          }
          document.Form2.action="${pageContext.request.contextPath}/system/elecCommonMsgAction_save.do";
          document.Form2.submit();
      /*     alert(" 待办事宜保存成功!"); */
  }

将数据提交到controlerl中对应的 elecCommonMsgAction_save.do

则对应的控制层的写法:

 

电力项目八--运行监控的保存

原文:http://www.cnblogs.com/taiguyiba/p/6883271.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!