- 博客(8)
- 资源 (1)
- 收藏
- 关注
js拖动
var Obj; var oMove; function MouseDown(obj){ Obj=obj; oMove=Obj; Obj.setCapture(); Obj.l=event.x-oMove.style.pixelLeft; Obj.t=event.y-oMove.style.pixelTop; } function MouseMove(){ if(Obj!=nu...
2008-02-29 11:40:20
99
文件上传
上传 InputStream istream = pFile.getInputStream(); String filePath = request.getRealPath("/upload"); OutputStream ostream = new FileOutputStream(filePath+"\\"+filename); int bytesRead = ...
2008-02-27 16:47:38
112
文件下载
下载 File file = new File(filePath); if(file.exists()){ try { BufferedInputStream bis = new BufferedInputStream( new FileInputStream(file)); byte[] buffer = new byte[1024]; ...
2008-02-27 16:45:51
116
jsp filter防止非法进入
package com.tongtech.bjvsp.sysmng.filter; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterCon...
2008-01-25 14:47:48
110
open session in view
zai web.xml中 OpenSessionInView org.springframework.orm.hibernate3.support.OpenSessionInViewFilter singleSession true OpenSessionInView *.do
2008-01-11 10:09:08
110
struts+hibernate+spring做图片上传
hibernate映射文件: xml 代码 <class name="com.yourcompany.vo.Fileload" table="FILELOAD" schema="TEST"> <id name="id" type="integer"> <colum
2007-11-12 14:21:09
110
Ruby learning
ruby变量,方法和类命名约定列于下表1中。 局部变量和方法参数以一个小写字母开头。 方法名字以一个小写字母开头。 全局变量以一个$开头。 实例变量以一个@开头。 类变量以两个@开头。 常数以一个大写字母开头(它们经常被指定全部大写)。 类和模块名以一个大写字母开头。 attr_reader 产生读方法 def venue @venue end attr_write...
2007-11-09 15:50:01
102
ApplicationContext创建方式
ApplicationContext能以声明的方式创建,可以使用ContextLodaer接口及其实现,它有两个实现:ContextLoaderListener和ContextLoaderServlet, 注意ContextLoaderListener不能与servlet2.2兼容,下面是具体实现xml 代码<context-param> <param-name> c...
2007-10-17 10:34:13
732
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人