分页
sql代码
pageindex:第几页-当前页码
pagesize:每页多少条记录
select *from(
select a.*,rownum as rid from(
select*from news279 order by nid desc
)a
}b where b.rid between ? and ?
(pageindex-1)*pageSize+1---pageindex*pageSize
smartUpload的组件
.专门用于实现王金上传及下载的免费组件
smartupload组件特点
使用简单:pianxi少量代码,完成上传下载功能
能够控制上传内容
能够控制上传文件的大小,类型
缺点:目前已停止更新服务
环境准备
使用smartupload组件需要在项目中引入
jspsmartupload.jar
将jspsmartupload.jar添加到web-infilb的目录下
需要设置表单的enctype属性
设置了enctype属性后,表单必须以post方式提交
file类
封装了单个上传文件所包含的所有信息
。常用方法
saveas(string descfilepathname),
ismissing(),
public String getfieidname()
public string getfilename()
setdeniedfilelist