
Struts
iteye_1498
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Dom4J创建xml文件的步骤
[code="java"]public static void createDoc(String filename){ /** 建立document对象 */ Document document = DocumentHelper.createDocument(); document.addElement("ADI");//创建根元素 Element rootE...原创 2011-05-20 09:26:01 · 158 阅读 · 0 评论 -
Struts1.X 配置文件详解(转)
Struts应用采用两个基于XML的配置文件来配置,分别是web.xml和struts-cofig.xml文件.web.xml文件是配置所有web应用的而struts-config.xml文件是struts专用的配置文件,事实上也是可以根据需要给这个配置文件起其他名称的. Web应用的发布描述文件:web应用发布描述文件可以在应用开着者,发布者和组装者之间传递配置信息,Web...原创 2011-03-22 09:25:34 · 134 阅读 · 0 评论 -
log4j:WARN No appenders could be found for logger(转)
在src下面新建file名为log4j.properties内容如下: # Configure logging for testing: optionally with log file log4j.rootLogger=WARN, stdout # log4j.rootLogger=WARN, stdout, logfile log4j.appender.stdout=org.a...原创 2011-04-21 16:28:03 · 103 阅读 · 0 评论 -
Spring的定时任务详细配置
1. Web.xml的配置 contextConfigLocation /WEB-INF/classes/beans-dao.xml org.springframework.web.context.ContextLoaderListener ...原创 2011-11-29 10:46:27 · 178 阅读 · 0 评论 -
Ext + org.apache.commons.fileupload上传文件
在项目中一直使用struts的FormFile上传文件,后来发现这种方式存在一些缺陷:上传前后文件的大小不一致,主要取决于写入stream的时候byte数组大小的设置, code="java"] byte[] temp = new byte[BUFFER_SIZE]; BufferedInputStream bi = new Buf...原创 2011-05-03 12:02:23 · 108 阅读 · 0 评论