ITeye博客

LOVEofForever

___loveOfForever · 共 47 篇文章

struts配置下载信息,处理InputStream

2013-04-24 12:23 · 转载 · 评论(0)

Js获取当前日期时间及其它操作

Js获取当前日期时间及其它操作 var myDate = new Date(); myDate.getYear(); //获取当前年份(2位) myDate.getFullYear(); //获取完整的年份(4位,1970-????) myDate.getMonth(); //获取当前月份(0-11,0代表1月) myDate.getDate(); //获取当前日(1-31) myDate.getDay(); //获取当前星期X(0-6,0代表星期天) myDate.getTime(); //获取当前时间(从1970.1.1开始的毫秒数) myDate.getHours(); //获取当前小…

2013-04-17 11:49 · 转载 · 评论(0)

Axis2开发创建WebService

一、Axis2的下载和安装 1.可从http://ws.apache.org/axis2/ 下载Axis2的最新版本: 可以下载如下两个zip包: axis2-1.5.4-bin.zip axis2-1.5.4-war.zip 其中 axis2-1.5.4-bin.zip文件中包含了Axis2中所有的jar文件, axis2-1.5.4-war.zip文件用于将WebService发布到Web容器中。 2.将axis2-1.5.4-war.zip文件解压到相应的目录,将目录中的axis2.war文件放到<Tomcat安装目录>\webapps目录中, 并启动Tomcat,在浏览器地址栏中输入…

2013-04-15 15:10 · 转载 · 评论(0)

myeclipse xifre

首先新建一个web工程CxfService,倒入cxf所学要的包。要倒入的包如下: commons-logging-1.1.jar geronimo-activation_1.1_spec-1.0-M1.jar (or Sun's Activation jar) geronimo-annotation_1.0_spec-1.1.jar (JSR 250) geronimo-javamail_1.4_spec-1.0-M1.jar (or Sun's JavaMail jar) geronimo-servlet_2.5_spec-1.1-M1.jar (or Sun's Servlet jar…

2013-04-09 17:33 · 转载 · 评论(0)

全选,点击链接全选,选中多选框全选以及反选,全不选

<table width="80%" cellspacing="1" cellpadding="3" align="center"> <tr> <td class="infoColumnName">地点<font colo

2012-08-30 13:49 · 转载 · 评论(0)

全选/全不选

2012-08-29 17:38 · 转载 · 评论(0)

动感导航菜单

} stylecode="cursor:hand;filter:Alpha(style=0,opacity="+Alpha+");background-color:"+bgc suspendcode=" " +" " +" "; document.write(suspendcode

2012-08-29 16:28 · 转载 · 评论(0)

菜单栏

.smenu{ width:774px; margin:0px auto 0px auto; padding:0px; list-style-type:none; height:32px; } .s_li{ line-height:32px; width:auto; display:none; height:32px; } .s_li_a{ line-height:32px; width:auto; display:block; height:32px; }

2012-08-29 16:23 · 转载 · 评论(0)

jquery

jquery

2012-08-29 14:42 · 转载 · 评论(0)

java遍历map

//最常规的一种遍历方法,最常规就是最常用的,虽然不复杂,但很重要,这是我们最熟悉的!! public static void work(Map<String, Student> map) { Collection c = map.values(); Iterator it = c.iterator(); for (; it.hasNext();) { System.out.println(it.next()); } } //利用keyset进行遍历,它的优点在于可以根据你所想要的key值得到你想要的 values,更具灵活性!! public static void workByKeySe…

2012-08-28 17:30 · 转载 · 评论(0)

下拉列表,下列列表选中,下列列表删除,js判断下拉列表选中或删除

下拉列表选中: var selObj = document.getElementById("executer"); selObj.options.selected="selected"; 下拉列表删除: var objSelect=document.getElementById("executer"); objSelect.length=1;//保留第一个 objSelect.length=0;//全部删除

2012-08-28 14:47 · 转载 · 评论(0)

禁止页面后退,禁止回退,js禁止回退,禁止页面回退

例如:有2个页面,一个页面为A,一个页面为B,从A 跳转到B 后,禁止从B回退或后退到 A ,把上面的 js 代码 写道A 页面即可. 注意:js是写在A 页面.

2012-08-20 15:52 · 评论(1)

spring 下配置 dbcp,c3p0,proxool 等数据源连接池

spring 下如何配置 dbcp,c3p0,proxool 等数据源连接 池。 Spring 配置 dbcp 数据源: ${jdbc.driverClassName} ${jdbc.url} ${jdbc.username} ${jdbc.password} 80 20 3000 Spring 中配置 c3p0 数据源: ${jdbc.driverClassName} ${jdbc.url} ${jdbc.username} ${jdbc.password} 5 3000 3000 80 1 6000 5 Spring 中配置 proxool 数据源: ${jdbc.driverClass…

2012-08-16 11:39 · 转载 · 评论(0)

打印,打印设置,打印预览

直接复制即可使用,可以用js事件对其进行进一步处理.

2012-08-16 11:16 · 评论(0)

鼠标移动到上面显示小手

<img id="<%=chan.trim()%>" style="width: 44; height: 17" src="<%=request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath() + "/images/bangding.gif"%>" onClick="SubmitForm(this.id)" onmouseover="this.style.cursor='hand'"/ > 当鼠标移动到图片上显示小手, 点击提交: …

2012-08-15 15:29 · 转载 · 评论(0)