
jsp技巧
jawsy
喜欢编码,文学,财经,音乐
展开
-
自写的日历控件
calendarfunction changeDay(form){ //得到年份 var year = form.year.value; //得到月份 var month = form.month.value; //如果月份为4,6,9,11,日期为30 if (month == 4 || month == 6 || month == 9 || month == 11) { /原创 2005-09-01 15:45:00 · 819 阅读 · 0 评论 -
JSP彩色验证码
java.awt.image.*,java.util.*,javax.imageio.*" %> Color getRandColor(int fc,int bc){//给定范围获得随机颜色 Random random = new Random(); if(fc>255) fc=255; if(bc>255) bc=255; int r=fc+random.nextInt(bc-fc); int原创 2005-06-06 13:10:00 · 983 阅读 · 0 评论 -
用JSP下载word文件(不会直接用IE打开)
String filename = ""; if (request.getParameter("file") != null) { filename = request.getParameter("file"); } response.setContentType("application/msword"); response.setHeade原创 2005-06-06 13:12:00 · 1204 阅读 · 1 评论 -
JSP避免Form重复提交的三种方案
1 javascript ,设置一个变量,只允许提交一次。 var checkSubmitFlg = false; function checkSubmit() { if (checkSubmitFlg == true) { return false; } checkSubmitFlg = true; return true; } do原创 2006-01-06 10:57:00 · 707 阅读 · 0 评论