Jsp、Struts、apache、tomcat 、JavaScript
关于log4j 1.2.15的搞笑问题
[
2010/07/18 23:42 | by fubin ]
2010/07/18 23:42 | by fubin ]
Log4j 1.2.15存在一个bug会导致log4j:ERROR LogMananger.repositorySelector was null likely due to。在apache官网上下一个Log4j 1.2.16 把包一覆盖就好了!
[sfile]attachment/201003/1269479058_0.rar[s/file]
这是对昨天的上传组件的补充。
这是对昨天的上传组件的补充。
在Ext Grid加上按钮
[
2010/01/19 16:28 | by fubin ]
2010/01/19 16:28 | by fubin ]
var FileList_cm = new Ext.grid.ColumnModel([{header: '附件名称',dataIndex: 'id'}, {header: '附件类型',dataIndex: 'sex'}, {header: '附件大小',dataIndex: 'name'},
{header: '上传人',dataIndex: 'descn'},{header: '上传时间',dataIndex: 'a1'},{header: '下载',dataIndex: 'a2',renderer:renderDescn}]);
//排序选项
FileList_cm.defaultSortable = true;
//
var FileList_data = [['送修报告', '原始文件', '1M', '符彬', '2009-10-10', ''], ['本次送修依据', '原始文件', '1M', '符彬', '2009-10-10', ''], ['厂家送修反馈', '完工反馈', '2M','符彬', '2009-10-10', '']];
var FileList_ds = new Ext.data.Store({
proxy: new Ext.data.MemoryProxy(FileList_data),
reader: new Ext.data.ArrayReader({}, [{name: 'id',mapping: 0}, {name: 'sex',mapping: 1},
{name: 'name',mapping: 2}, {name: 'descn',mapping: 3}, {name: 'a1',mapping: 4}, {name: 'a2',mapping: 5}])
});
FileList_ds.load();
var FileList = new Ext.grid.GridPanel({
ds: FileList_ds,
cm: FileList_cm,
autoHeight: true,
//列自动适应
viewConfig:{
forceFit: true
}
//翻页菜单
/*
,bbar: new Ext.PagingToolbar({
pageSize: 10,
store: FileList_ds,
displayInfo: true,
displayMsg: '显示第 {0} 条到 {1} 条记录,一共 {2} 条',
emptyMsg: "没有记录"
})*/
});
function renderDescn(value, cellmeta, record, rowIndex, columnIndex, store) {
var str = "<input type='button' value='点击下载' onclick='alert(\"" +
"这个单元格的值是:" + value + "\\n" +
"这个单元格的配置是:{cellId:" + cellmeta.cellId + ",id:" + cellmeta.id + ",css:" + cellmeta.css + "}\\n" +
"这个单元格对应行的record是:" + record.data["id"] + ",一行的数据都在里边\\n" +
"这是第" + rowIndex + "行\\n" +
"这是第" + columnIndex + "列\\n" +
"这个表格对应的Ext.data.Store在这里:" + store + ",随便用吧。" +
"\")'>";
return str;
}
{header: '上传人',dataIndex: 'descn'},{header: '上传时间',dataIndex: 'a1'},{header: '下载',dataIndex: 'a2',renderer:renderDescn}]);
//排序选项
FileList_cm.defaultSortable = true;
//
var FileList_data = [['送修报告', '原始文件', '1M', '符彬', '2009-10-10', ''], ['本次送修依据', '原始文件', '1M', '符彬', '2009-10-10', ''], ['厂家送修反馈', '完工反馈', '2M','符彬', '2009-10-10', '']];
var FileList_ds = new Ext.data.Store({
proxy: new Ext.data.MemoryProxy(FileList_data),
reader: new Ext.data.ArrayReader({}, [{name: 'id',mapping: 0}, {name: 'sex',mapping: 1},
{name: 'name',mapping: 2}, {name: 'descn',mapping: 3}, {name: 'a1',mapping: 4}, {name: 'a2',mapping: 5}])
});
FileList_ds.load();
var FileList = new Ext.grid.GridPanel({
ds: FileList_ds,
cm: FileList_cm,
autoHeight: true,
//列自动适应
viewConfig:{
forceFit: true
}
//翻页菜单
/*
,bbar: new Ext.PagingToolbar({
pageSize: 10,
store: FileList_ds,
displayInfo: true,
displayMsg: '显示第 {0} 条到 {1} 条记录,一共 {2} 条',
emptyMsg: "没有记录"
})*/
});
function renderDescn(value, cellmeta, record, rowIndex, columnIndex, store) {
var str = "<input type='button' value='点击下载' onclick='alert(\"" +
"这个单元格的值是:" + value + "\\n" +
"这个单元格的配置是:{cellId:" + cellmeta.cellId + ",id:" + cellmeta.id + ",css:" + cellmeta.css + "}\\n" +
"这个单元格对应行的record是:" + record.data["id"] + ",一行的数据都在里边\\n" +
"这是第" + rowIndex + "行\\n" +
"这是第" + columnIndex + "列\\n" +
"这个表格对应的Ext.data.Store在这里:" + store + ",随便用吧。" +
"\")'>";
return str;
}
JSP显示XML数据结构
[
2010/01/13 09:24 | by fubin ]
2010/01/13 09:24 | by fubin ]
apache.commons.fileupload in JSP
[
2009/07/10 00:41 | by fubin ]
2009/07/10 00:41 | by fubin ]
JS做个表格显示方法
[
2009/07/07 00:43 | by fubin ]
2009/07/07 00:43 | by fubin ]
JS判断输入内容的方法
[
2009/04/16 20:39 | by fubin ]
2009/04/16 20:39 | by fubin ]
jsp实现个人工日作计划
[
2009/04/07 10:36 | by fubin ]
2009/04/07 10:36 | by fubin ]



下载文件
