求助标签库路径配置
标签库在web.xml中配置如下:
[code=INIFile]
<jsp-config>
<taglib>
<taglib-uri>bean</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>html</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>logic</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>tiles</taglib-uri>
<taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
</taglib>
</jsp-config>
[/code]
现在有一个项目,结构如下:
webroot
|---jsp
|--test.jsp
|--index.jsp
在index.jsp中引用标签库没有问题,但在test.jsp中却出了问题(页面可以编译通过,但什么也显示不出来).引用如下:
[code=INIFile]
<%@ taglib uri="bean" prefix="bean" %>
<%@ taglib uri="html" prefix="html" %>
<%@ taglib uri="logic" prefix="logic" %>
<%@ taglib uri="tiles" prefix="tiles" %>
[/code]
请问,在test.jsp中该如何写才能正确引用标签????uri="../bean"不行提示错误