WAP手机上的问卷调查系统的构建 - 编程入门网
作者 佚名技术
来源 NET编程
浏览
发布时间 2012-06-22
f(i > 0 && i < s1.length() - 1 && s1.charAt(0) != ''#'' && !s1.startsWith("//")) file://参数的第一个字符不能为#和// hashtable.put(s1.substring(0, i).trim(), s1.substring(i + 1).trim()); file://把等号前后的字符串分别存入哈西表中 } } reader.close(); File file = new File(s); hashtable.put("edited", String.valueOf(file.lastModified())); } catch(Exception _ex) { } if(hashtable.get("bgcolor") == null) hashtable.put("bgcolor", "#FFFFFF"); file://向哈西表中写入默认的背景色 if(hashtable.get("fgcolor") == null) hashtable.put("fgcolor", "#000000"); file://向哈西表中写入默认的前景色 if(hashtable.get("column") == null) hashtable.put("column", "1"); file://向哈西表中写入默认的column值 if(hashtable.get("cookies") == null) hashtable.put("cookies", "0"); file://向哈西表中写入默认的cookies值为0 if(hashtable.get("title") == null) hashtable.put("title", "A Free & Simple Vote System"); file://向哈西表中写入默认的标题 if(hashtable.get("votecolor") == null) hashtable.put("votecolor", "#FF0000"); file://向哈西表中写入默认投票色 hashtable.put("fct", new Integer(0)); } private Hashtable getConfig(String s) file://打开配置文件 { Hashtable hashtable; if((hashtable = (Hashtable)cfgs.get(s)) != null) { File file = new File(s); String s1 = (String)hashtable.get("edited"); if(s1.equals(String.valueOf(file.lastModified()))) return hashtable; file://如果文件被编辑过,则返回哈西表 cfgs.remove(s); hashtable = null; } hashtable = new Hashtable(); readConfig(s, hashtable); cfgs.put(s, hashtable); String s2 = (String)hashtable.get("log"); if(s2 != null && forLock.get(s2) == null) forLock.put(s2, new Object()); return hashtable; } private void showVote(String s, String s1, Hashtable hashtable, HttpServletRequest request, HttpServletResponse response) throws IOException { String s2 = (String)hashtable.get("options"); String s3 = (String)hashtable.get("column"); String s |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |
你可能对下面的文章感兴趣
关于WAP手机上的问卷调查系统的构建 - 编程入门网的所有评论