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
                                                                   );
                                                         }
                                                     }
  • 相关阅读:
    Azure HPC Pack Cluster添加辅助节点
    Azure HPC Pack 辅助节点模板配置
    Azure HPC Pack配置管理系列(PART6)
    Windows HPC Pack 2012 R2配置
    Azure HPC Pack 节点提升成域控制器
    Azure HPC Pack VM 节点创建和配置
    Azure HPC Pack 部署必要条件准备
    Azure HPC Pack 基础拓扑概述
    Azure VM 性能计数器配置
    Maven私仓配置
  • 原文地址:https://www.cnblogs.com/bobomail/p/262800.html
Copyright © 2011-2022 走看看