04 2015 档案

摘要:报错信息:Attribute "xmlns" was already specified for element "web-app"由于项目的重命名,出现了xmlns的重复赋值,这可能是eclipse自己设定的一种方式,重新为项目匹配合适的配置。删除其中一个即可 阅读全文
posted @ 2015-04-19 00:10 hello_史努比 阅读(3415) 评论(0) 推荐(0)
摘要:1 2 3 4 5 6 54 无标题文档55 56 57 58 59 60 61 62 63 64 65 阅读全文
posted @ 2015-04-11 22:15 hello_史努比 阅读(314) 评论(0) 推荐(0)
摘要:struts2 Action获取表单传值1.通过属性驱动式JSP: Action:直接通过get、set方法获取。public class sysAction extends ActionSupport{ private String username; public String l... 阅读全文
posted @ 2015-04-08 21:55 hello_史努比 阅读(226) 评论(0) 推荐(0)
摘要:当 Web 应用集成 Spring 容器后,代表 Spring 容器的 WebApplicationContext 对象将以WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE为键存放在 ServletContext 属性列表... 阅读全文
posted @ 2015-04-02 11:05 hello_史努比 阅读(318) 评论(0) 推荐(0)
摘要:使用MyEclipse 编写Java代码时,自动生成的注释信息都是按照预先设置好的格式生成的。修改作者、日期注释格式:打开Windows->Preferences->Java->Code Style->Code Templates,点击右边窗口中的Comments,可以看到有很多选项,我们便可对此注... 阅读全文
posted @ 2015-04-02 09:42 hello_史努比 阅读(991) 评论(0) 推荐(0)
摘要:本文转自 :http://blog.sina.com.cn/s/blog_6ac4c6cb010190ml.htmlFilterDispatcher是早期struts2的过滤器,后期的都用StrutsPrepareAndExecuteFilter了,如 2.1.6、2.1.8。StrutsPrepa... 阅读全文
posted @ 2015-04-01 23:38 hello_史努比 阅读(494) 评论(0) 推荐(0)
摘要:Log4J的配置文件(Configuration File)就是用来设置记录器的级别、存放器和布局的,它可接key=value格式的设置或xml格式的设置信息。通过配置,可以创建出Log4J的运行环境。1. 配置文件Log4J配置文件的基本格式如下:#配置根Loggerlog4j.rootLogge... 阅读全文
posted @ 2015-04-01 22:01 hello_史努比 阅读(321) 评论(0) 推荐(0)