日期:2014-05-20  浏览次数:20687 次

求救!!!Module null not found!

   
 Module nulll not 
 我近期在学习STRUTS,用的是1.38版的 我把lib/下的所有JAR文件考到了/WEB-INF/下,但是没有struts-html.tld,struts-bean.tld,...,我就从struts-taglib-1.38.jar中解压了出来,把他们放在了/WEB-INF/tlds下. 
但是在JSP 中没有办法使用STRUTS标签库 只要带STRUTS标签的地方都会出错! 

其他的配置文件都没错误,我已经仔细检查了!有一点,我看网上有人说1.38版的不用在struts-config.xml中进行配置标签库. 
不知道对不对? 

出现最常的错误就是MODULE null not found! 


JSP中的引用如下: 

<%@taglib uri="http://struts.apache.org/struts-html.tld" prefix="html"% > 

<html:form action="/search" method="post" > 
<html:text property="name"/>
</html-form > 

就会出错,除了module null not found错误外,有时候如果使用struts-bean标签还会出现,说这个BEAN不存在!如: 


<bean message="dddd"/ > 

都快急死了,搞了半个月了!!!! 
 
 
 
 


 

------解决方案--------------------
没有导入struts标签库吧
------解决方案--------------------
<%@taglib uri="http://struts.apache.org/struts-html.tld" prefix="html"% >

换成,

<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>


------解决方案--------------------
<%@taglib uri="/web-inf/struts-html.tld" prefix="html"% > 
改成:
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %> 
  
打开项目时把标签库加载进去,在应用下应该有显示JAR文件的。
------解决方案--------------------
<html:form action="/search" method="post" name="form1" > 
<html:password property="password" size="20" >
都没有结束标签!<html:from /><html:password />
------解决方案--------------------
是不是在web.xml里面没有加入<taglib>
<taglib-uri>/web-inf/structs-html.tld</taglib-uri>
...
</taglib>
------解决方案--------------------
一个是ActionServlet没有 <load-on-startup>
再不行容器换Resin 
我同一台机器上TOMCAT有这个问题 RESIN没事