最近开始学struts了,其它还可以,就是个验证一直搞不懂:java.lang.NullPointerException: Module 'null' not found.原来程序还好好的,现在不管运行哪个页面都出这个错误了,哪位高手帮我调试一下~谢谢了~(我在网上参考了很多文章都没搞出来)程序地址: http://www.chcode.net/zb.rar如果下不了就到: http://www.gold98.net/zb.rar快试了一天了,晕死了,还请哪位高手帮帮忙,看错在哪里~  

解决方案 »

  1.   

    <%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
    <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
    <%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>具体情况是凡是引用tld标记的地方:如<html:form这样的地方都会出现上面的错误,估计tld产生了错误,但我一开始是正确的,我换成本地的:<%@ taglib uri="/tags/struts-logic" prefix="logic" %>也是同样的错误:java.lang.NullPointerException: Module 'null' not found.
    org.apache.struts.taglib.TagUtils.getModuleConfig(TagUtils.java:743)
    org.apache.struts.taglib.TagUtils.computeURLWithCharEncoding(TagUtils.java:360)
    org.apache.struts.taglib.TagUtils.computeURLWithCharEncoding(TagUtils.java:281)
    org.apache.struts.taglib.logic.RedirectTag.generateRedirectURL(RedirectTag.java:286)
    org.apache.struts.taglib.logic.RedirectTag.doEndTag(RedirectTag.java:265)有谁遇到过没??
      

  2.   

    index.jsp因为你的index.jsp文件没有放到webroot目录中。
      

  3.   

    java.lang.NullPointerException: 错误是一些实例没有注入 检查下Module 'null' 的位置(类的 或者 JSP的)还有可能是配置文件 关于Module 'null' 的配置错误,不好意思没下您的代码,以上都是猜测出来的。