摘要:
1、Servlet.service() for servlet [jsp] in context with path [/yunnar] threw exception [java.lang.NullPointerException] with root cause 当查不出java代码有什么错误时,可以考虑看看是不是数据库里相应的表里有空值
阅读全文
posted @ 2013-05-20 21:17
CaptainLuffy
阅读(221)
推荐(0)
编辑
摘要:
1、Object 不能转换成 int 但是可以转换成Integer类型2、List<Map<String,Object>>首先是一个列表,列表里存放的是map 类型数据,map中key是string类型,value是object类型Map<String,Object>map=newHashMap<String,Object>();map.put("key1","value1");map.put("key2","value2");List<Map<Strin
阅读全文
posted @ 2013-05-20 21:16
CaptainLuffy
阅读(94)
推荐(0)
编辑
摘要:
String sql = "select allow_pic,allow_text,allow_link,price from ad_module where alias= shouye3;报出Unknown column 'shouye3' in 'where clause'的错误原因是:alias是字符类型的数据,查找应该加上引号。改成select allow_pic,allow_text,allow_link,price from ad_module where alias='shouye3'就不会报错了
阅读全文
posted @ 2013-05-20 20:13
CaptainLuffy
阅读(176)
推荐(0)
编辑
摘要:
原因:判断是否登录解决方法:加入<% String path = request.getContextPath(); String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/"; System.out.println(request.getParameter("page")); String currentPage = request.g
阅读全文
posted @ 2013-05-20 16:12
CaptainLuffy
阅读(155)
推荐(0)
编辑