码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2017-05-20 22:36:35      阅读:105      评论:0      收藏:0      [点我收藏+]

标签:pat   数据   com   内容   blog   text   ecc   调用   div   

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

 页面中调用保存的函数

 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

则对应的控制层的写法:

 

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

标签:pat   数据   com   内容   blog   text   ecc   调用   div   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!