关于struts中自带的标签的问题
用struts自带的taglib除了要在web.xml中配置相应的tld映射之外(如下)还要什么别的配置?
<taglib>
<taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/tlds/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
<taglib-location>/WEB-INF/tlds/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
<taglib-location>/WEB-INF/tlds/struts-logic.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-template.tld</taglib-uri>
<taglib-location>/WEB-INF/tlds/struts-template.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-nested.tld</taglib-uri>
<taglib-location>/WEB-INF/tlds/struts-nested.tld</taglib-location>
</taglib>
我在用到<html:form />的时候总是出错:
org.apache.jasper.JasperException: Cannot find ActionMappings or ActionFormBeans collection
如果我不用<html:form/>,直接用<form></form>,并在<form></form>之间用<html:text/>的时候出错:
org.apache.jasper.JasperException: Cannot find bean org.apache.struts.taglib.html.BEAN in any scope
请高手不吝赐教,不胜感激!!!!