zoukankan      html  css  js  c++  java
  • 通用表单处理程序

         HttpSession session = request.getSession();
                                                     List wherecollection=new ArrayList();
                                                     wherecollection.removeAll(wherecollection);
                                                     Enumeration e = request.getParameterNames();
                                                    // if (request.getMethod().equals("POST"))
                                                  //  {
                                                        sResult = Constants.
                                                                FAILING;             
                                                   
                                                     while (e.hasMoreElements()) {
                                                    
                                                         String parameterName = (
                                                                 String) e.
                                                                                nextElement();
                                                         String parameterValue = (
                                                                 String) request.
                                                                                 getParameter(
                                                                                         parameterName);
                                                         System.out.println("参数名称:" +
                                                                            parameterName +
                                                                            "<BR>");
                                                         System.out.println("参数内容:" +
                                                                            parameterValue +
                                                                            "<BR>");
                                                       
                                                         if (checkform(parameterValue,parameterName)==0) {//成功
                                                             addrow(wherecollection,parameterName,parameterValue
                                                                   );
                                                         }
                                                     }
  • 相关阅读:
    c 语言学习第一天
    react+antd 使用脚手架动态修改主题色
    用 vitePress 快速创建一个文档项目
    react懒加载,减少首屏加载时间
    react-devtools安装以及使用中的问题
    react为什么不用数组的下标来绑定key
    三种js缓存(笔记)
    关于浏览器自动记住登录帐号和密码后, 一些输入框会显示帐号密码信息
    H5 Hybrid开发-前端资源本地化方案纪要
    webpack + ts 配置路径别名无死角方法总结
  • 原文地址:https://www.cnblogs.com/bobomail/p/262800.html
Copyright © 2011-2022 走看看