摘要: 默认jsp传送的数据都是String类型的,所以比如Action方法中使用一个Date,不能直接转化,所以需要一个类型转换器 1.局部类型转换器 (1)创建一个类型传唤器 (2)jsp界面 time (3)Action类中time Date类型的 (4)添加action类中和转换器对应的文件 Tes 阅读全文
posted @ 2016-04-08 22:43 纯粹的人 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 三种方式: 1.直接在类中校验 jsp界面添加: <s:fielderror cssStyle="color:red"/> <s:actionerror cssStyle="color:red"/> Action类中: validate+Action方法名称首字母大写 例如: addTask(){ 阅读全文
posted @ 2016-04-08 22:10 纯粹的人 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 1.PropertiesConfiguration 2.直接spring配置文件使用 http://www.cnblogs.com/sj521/p/5368335.html 3.Properties props = new Properties(); 读取使用 未完待续。。。。。。 阅读全文
posted @ 2016-04-08 15:40 纯粹的人 阅读(391) 评论(0) 推荐(0) 编辑
摘要: 1.网址 http://blog.163.com/wchao226@126/blog/static/69514819201051742718830/ http://thomaslee007.iteye.com/blog/167762 2.例子 spring配置文件 xxx.properties ta 阅读全文
posted @ 2016-04-08 15:33 纯粹的人 阅读(236) 评论(0) 推荐(0) 编辑