我的struts问题,有没有人能解决啊,我问了好多人都没能解决
我的struts标志库怎么都用不起,像什么struts-html,struts-bean,怎么回事,他总是提示
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:506)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:395)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
java.lang.NullPointerException: Module 'null ' not found.
org.apache.struts.taglib.TagUtils.getModuleConfig(TagUtils.java:755)
org.apache.struts.taglib.TagUtils.computeURLWithCharEncoding(TagUtils.java:364)
org.apache.struts.taglib.TagUtils.computeURLWithCharEncoding(TagUtils.java:285)
org.apache.struts.taglib.bean.IncludeTag.doStartTag(IncludeTag.java:175)
org.apache.jsp.setSolution_jsp._jspService(setSolution_jsp.java:70)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
到底是什么问题,我实在无能为力了,我已经在这上面不知道浪费多少时间了,有人能帮我一下吗,我的部署应该没错,不知道什么原因
[解决办法]
标签配置的问题。。。。。。
或者你把应用DEL 在部署一下
[解决办法]
你的struts标志库没在web.xml中配置好,具体如下:
web.xml:
</web-app>
....
<taglib>
<taglib-uri> /WEB-INF/struts-bean.tld </taglib-uri>
<taglib-location> /WEB-INF/struts-bean.tld </taglib-location>
</taglib>
<taglib>
<taglib-uri> /WEB-INF/struts-html.tld </taglib-uri>
<taglib-location> /WEB-INF/struts-html.tld </taglib-location>
</taglib>
<taglib>
<taglib-uri> /WEB-INF/struts-logic.tld </taglib-uri>
<taglib-location> /WEB-INF/struts-logic.tld </taglib-location>
</taglib>
<taglib>
<taglib-uri> /WEB-INF/struts-nested.tld </taglib-uri>
<taglib-location> /WEB-INF/struts-nested.tld </taglib-location>
</taglib>
<taglib>
<taglib-uri> /WEB-INF/struts-tiles.tld </taglib-uri>
<taglib-location> /WEB-INF/struts-tiles.tld </taglib-location>
</taglib>
</web-app>
JSP:
<%@ page language= "java " pageEncoding= "GB2312 "%>
<%@ taglib uri= "/WEB-INF/struts-bean.tld " prefix= "bean "%>
<%@ taglib uri= "/WEB-INF/struts-html.tld " prefix= "html "%>
<%@ taglib uri= "/WEB-INF/struts-logic.tld " prefix= "logic "%>
......
这样就可以了.