org.apache.jasper.JasperException: File "/struts-tags" not foundc

2009-05-24 17:20

struts2 子目录jsp File "/struts-tags " not found ,根目录就没错


今天在做Struts2配置时,出了这样的错误.
先前按照

<jsp-config>
<taglib>
<taglib-uri>/struts-tags</taglib-uri>
<taglib-location>/WEB-INF/struts-tags.tld</taglib-location>
</taglib>
</jsp-config>

 这种方式把配置访导入也没有用.
查了资料原来是和tomcat配置有关.
以下配置配置在</host>后面
我配置在tomcat server.xml是这样的

<Host name="bbb" appBase="D:\workspace\webManageSystem\WebContent"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Alias>test.com</Alias>
<Context path="/" docBase="D:\workspace\webManageSystem\WebContent" reloadable="true"
caseSensitive="false" debug="0"></Context>
</Host>

 改成以下则成功

<Host name="webGame" appBase=""
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">

<Alias>127.0.0.1</Alias>
<Context path="/" docBase="E:\workspace0\webGame\WebRoot" reloadable="true"
caseSensitive="false" debug="0"></Context>
</Host>

 引用资料网址:http://hdxiong.iteye.com/blog/370969

你可能感兴趣的:(apache,tomcat,jsp,Web,struts)