`
一笑_奈何
  • 浏览: 68265 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

_el_expressionfactory=_jspxFactory.getJspApplicationContext(getServletConfig()

    博客分类:
  • J2EE
阅读更多
  今天在运行工程之后,访问页面突然报了一个空指针异常。我用java反编译工具看了一下jsp页面报异常的地方,然后发现是jsp的onInit方法报的异常。所以我在网上查了一下资料,原来是我把tomcat里面的jar放入到工程之内造成的问题,只要在工程里面移除jar包就能够正常运行了
分享到:
评论

相关推荐

    java网站开发结合jsp写的上传以及批量上传文件代码

    su.initialize(getServletConfig(), request, response); // 5:上传 su.upload(); // 拿取Smartupload的request // 注意当我们使用了SmartUpload此jar包后 // 无法再次使用httpServletRequest这...

    commons-fileupload-1.2.jar和commons-io-1.3.2.jar

    this.uploadPath = this.getServletConfig().getInitParameter("upload_path");//的到web.xml中的配置文件用于保存上传文件,也可以在已开始定义的时候初始化,不过这样可以通过改动配置文件来改动存放路径,不用该...

    struts2中action如何获取jsp页面参数1.pdf

    ServletConfig servletConfig = ServletActionContext.getServletConfig(); PageContext pageContext = ServletActionContext.getPageContext(); ``` 3. **ActionContext与ServletActionContext的选择** - 当...

    spring+hibernate+osworkflow

    ApplicationContext cxt = WebApplicationContextUtils.getWebApplicationContext(this.getServletConfig().getServletContext()); Workflow wf = (Workflow)cxt.getBean("workflow"); 用osworkflow自带的designer把...

    Servlet获取初始化参数.doc

    ServletConfig servletConfig = getServletConfig(); String username = servletConfig.getInitParameter("username"); String email = servletConfig.getInitParameter("email"); ``` 获取 ServletContext 和 ...

    ServLetContext基础

    ServLetContext 解决的问题:不同的用户使用相同的数据 就是不同的用户,访问...ServletContext sc1=this.getServletConfig().getServletContext(); ServletContext sc2=req.getSession().getServletContext(); 注意

    JSP内置对象使用说明.doc

    ServletConfig config = servlet.getServletConfig(); String initParam = config.getInitParameter("paramName"); ``` 8.PageContext对象类:PageContext PageContext对象提供了一种方式来访问JSP页面的所有范围...

    Servlet查询数据库案例--Query(java源码)

    ServletConfig config = getServletConfig(); String driverClassName = config.getInitParameter("driverClassName"); String url = config.getInitParameter("url"); String username = config....

    XDoclet入门教程

    ServletConfig config = this.getServletConfig(); String h = config.getInitParameter("xdoclet"); try { response.setContentType("text/html;charset=GBK"); java.io.PrintWriter out = response.getWriter...

    +Flex+集成到+Java+EE+应用程序的最佳实践(完整源代码)

    FlexContext.getServletConfig().getServletContext() ); String beanName = getSource(); try { log.info("Lookup bean from Spring ApplicationContext: " + beanName); return appContext.getBean(bean...

    JSP 获取Spring 注入对象示例

    <%@ page import=org.springframework.web.context...ServletContext sc = this.getServletConfig().getServletContext(); ApplicationContext ac2 = WebApplicationContextUtils.getWebApplicationContext(sc);

    ajax上传文件

    smartUpload.initialize(getServletConfig(), request, response); try { smartUpload.setDeny DangerousFiles(true); // 防止上传危险文件 smartUpload.upload(); // 开始上传 for (int i = 0; i ...

    Struts2 实现文件简单上传

    String filePath = getServletConfig().getServletContext().getRealPath("/") + "uploads/" + fileFileName; // 将上传的文件移动到服务器上的目标位置 file.renameTo(new File(filePath)); // 提示文件上传...

    将 Flex 集成到 Java EE 应用程序的最佳实践(完整源代码)

    FlexContext.getServletConfig().getServletContext() ); String beanName = getSource(); try { log.info("Lookup bean from Spring ApplicationContext: " + beanName); return appContext.getBean...

    struts2.x文件上传

    File uploadedFile = new File(getServletConfig().getServletContext().getRealPath("/") + "uploads/" + fileFileName); FileUtils.copyFile(file, uploadedFile); ``` 6. **错误处理与验证** Struts2提供了...

    Head_First_Servlet_and_JSP_筆記.pdf

    - **getServletConfig()**: 返回当前Servlet的配置对象,允许Servlet访问初始化参数和其他配置数据。 - **getServletInfo()**: 返回一个字符串,描述Servlet的信息,例如版本号、作者等。 ##### GenericServlet类 ...

    jsp 图片上传下载控件复制即可用支持中文附jspSmartUpload上传下载全攻略

    su.initialize(this.getServletConfig(), request, response); try { su.upload(); for (FileItem fileItem : su.getFiles()) { if (!fileItem.isFormField()) { String fileName = su.getUniqueFileName...

Global site tag (gtag.js) - Google Analytics