摘要: jsp 中的 encodeURI、encodeURIComponent用的是UTF-8,是不能更改的java 中的URLEncoder.encode 的编码方式 是可变的,可以 通过URLEncoder.encode(string,"utf-8")来指定编码方式,此时的效果等同于jsp中的encod... 阅读全文
posted @ 2013-06-28 14:32 wyang0126 阅读(99) 评论(0) 推荐(0) 编辑
摘要: ${wjcd.lrsj}原来得到的是如2006-11-12 11:22:22.0${fn:substring(wjcd.lrsj, 0, 16)}使用functions函数来获取list的长度${fn:length(list)}fn:contains(string, substring)假如参数st... 阅读全文
posted @ 2013-06-28 09:35 wyang0126 阅读(241) 评论(0) 推荐(0) 编辑
摘要: ${wjcd.lrsj}原来得到的是如2006-11-12 11:22:22.0${fn:substring(wjcd.lrsj, 0, 16)}使用functions函数来获取list的长度${fn:length(list)}fn:contains(string, substring)假如参数st... 阅读全文
posted @ 2013-06-28 09:27 wyang0126 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 代码: SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd hh:mm:ss"); Date date=new Date(); String time=sdf.format(date); Timestamp timestamp=Tim... 阅读全文
posted @ 2013-06-25 13:59 wyang0126 阅读(707) 评论(0) 推荐(0) 编辑
摘要: Unable to instantiate Action, com.pp.action.user.LoginAction, defined for 'login' in namespace '/user'Error creating bean with name 'com.pp.action.us... 阅读全文
posted @ 2013-06-25 09:35 wyang0126 阅读(750) 评论(0) 推荐(0) 编辑
摘要: 报错 现象:Caused by: java.sql.SQLException: Data truncated for column 'task_content' at row 1报错原因:task_content 字段 在数据库中 长度太短 ,或者类型不对, 也有可能是插入数据 乱码 阅读全文
posted @ 2013-06-25 09:08 wyang0126 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 报错详细:java.lang.ClassCastException: com.sun.proxy.$Proxy20 cannot be cast to com.pp.dao.account.AccountDaoImpl at com.pp.tt.T1.testUpdate(T1.java:42) a... 阅读全文
posted @ 2013-06-24 15:41 wyang0126 阅读(1934) 评论(0) 推荐(0) 编辑
摘要: 问题原因: 由于mysql的jdbc驱动放在 WEB-INF下面的lib目录下在重新发布时加载了两次,解决办法: 将其拷贝到tomcat的lib目录下就可以了,删除 WEB-INF 下的jar包 阅读全文
posted @ 2013-06-20 09:13 wyang0126 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 具体报错信息:Caused by: The Result type [json] which is defined in the Result annotation on the class [class com.pp.action.user.LoginAction] or determined b... 阅读全文
posted @ 2013-06-20 09:09 wyang0126 阅读(1427) 评论(0) 推荐(0) 编辑
摘要: 先贴上代码: public Account getAccountByName(String name) { // TODO Auto-generated method stub String hql = "select a from Account a where name =?"; Quer... 阅读全文
posted @ 2013-06-19 10:46 wyang0126 阅读(516) 评论(0) 推荐(0) 编辑