用eclipse+myeclipse开发Struts第一个jsp的小问题?
每次都要把
<%@ 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 " %>
<%@ taglib uri= "http://struts.apache.org/tags-tiles " prefix= "tiles " %>
替换为
<%@ taglib uri= "/tags/struts-html " prefix= "html "%>
<%@ taglib uri= "/tags/struts-bean " prefix= "bean "%>
<%@ taglib uri= "/tags/struts-logic " prefix= "logic "%>
吗?
还要在web.xml加入
<taglib>
<taglib-uri> /tags/struts-html </taglib-uri>
<taglib-location> /WEB-INF/struts-html.tld </taglib-location>
</taglib>
<taglib>
<taglib-uri> /tags/struts-bean </taglib-uri>
<taglib-location> /WEB-INF/struts-bean.tld </taglib-location>
</taglib>
<taglib>
<taglib-uri> /tags/struts-logic </taglib-uri>
<taglib-location> /WEB-INF/struts-logic.tld </taglib-location>
</taglib>
这岂不是很不方便!
请问如何解决啊,谢谢!!!!
[解决办法]
没办法,就得这样呀,在web.xml中配置一次就可以了