我的JSP代码除了问题,请求帮助 jspprocessingexception 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 这个是Index.jsp第40行的代码 %><%List<Category> categories = CategoryService.getInstance().getCategories();List<Category> topCategories = getTopCategories(categories); %> CategoryService.getInstance() 没获取的实例对象,报空??? 果断检查CategoryService.getInstance() ,在java代码中System.out.println(CategoryService.getInstance()) 输出一下,是否能够获取到对象 ava.lang.NullPointerException,这是个大众异常,LZ还是断点调下 categories这个集合你看看是不是没有获取到值 空指针异常,CategoryService.getInstance().getCategories();这里要不就是你这个CategoryService.getInstance().实例化的时候出错,要不就是getCategories出错 文件打包时,为什么不能导入这些包? 关于axis调用WebService返回值的问题 有没有哪位大哥有jBPM4的项目给俺look, look struts2+Ext 显示网格 hadoop中使用jar包 InheritanceJoinColumns这个类是在哪个包里呢 url标签问题 ejb3如何提取出jdbc的连接 如果去掉tomcat的启动画面? 各位大哥,我用jb5整合weblogic来开发ejb,有个问题,请帮我。 怎样动态生成类 JNative调用dll参数设置问题
List<Category> categories = CategoryService.getInstance().getCategories();
List<Category> topCategories = getTopCategories(categories); %>
在java代码中System.out.println(CategoryService.getInstance()) 输出一下,是否能够获取到对象