sever.xml<Host name="localhost" appBase="D:\myWork\project\webroot" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
<Context path="?" docBase="?" debug="0" reloadable="true" crossContext="true"/>
</Host>web.xml<jsp-config>
<taglib>
<taglib-uri>/system</taglib-uri>
<taglib-location>/WEB-INF/system.tld</taglib-location>
</taglib>
</jsp-config>
我把页面都放在了webroot下的一个文件夹下.文件夹的index页面就可以找到<%@ taglib prefix="sys" uri="/system"%>,而其它的页面就报错'File "/system" not found',同时,我在include页面的时候,file属性也不能写成'/该文件夹名/页面.jsp'.否则找不到该页面.请问,是不是我的工程路径配置错误了?是不是在问号那里应该改成什么?谢谢大家帮我看一下...
<Context path="?" docBase="?" debug="0" reloadable="true" crossContext="true"/>
</Host>web.xml<jsp-config>
<taglib>
<taglib-uri>/system</taglib-uri>
<taglib-location>/WEB-INF/system.tld</taglib-location>
</taglib>
</jsp-config>
我把页面都放在了webroot下的一个文件夹下.文件夹的index页面就可以找到<%@ taglib prefix="sys" uri="/system"%>,而其它的页面就报错'File "/system" not found',同时,我在include页面的时候,file属性也不能写成'/该文件夹名/页面.jsp'.否则找不到该页面.请问,是不是我的工程路径配置错误了?是不是在问号那里应该改成什么?谢谢大家帮我看一下...
解决方案 »
- JSP登陆异常!
- 关于链接查询的问题,高手请进!
- 在页面获取参数的时候为什么会有乱码?基数个汉字+数字
- 开源爬虫工具的选择?
- 麻烦哪位大哥帮我看看啊!!为什么编译此文件会出现以下错误!
- ssh集成,项目启动报错(struts2.3.15.3+spring3.2.4+hibernate4.2.7.sp1),数据库oracle11g
- 同一页中注销后再次登录,无法保存session?
- 关于查询Access数据库不能查询中文字符的问题
- 救救我!如何实现将从数据库中查出的相关记录,生成柱状图返回给客户端浏览器,需要什么样的技术?越简单越好!
- 50分!那位大哥帮我调试一下代码!总出错!
- 大家帮我看一下jsp怎么动态生成一个表格
- spring管理struts的action问题
taglib-uri 最好采用完整URL,或者包的名字(保证唯一)。
写成“/xxx”没测试过,建议你改成其他形式。比如: <taglib>
<taglib-uri>http://www.xxx.com/taglibs/utils</taglib-uri>
<taglib-location>/WEB-INF/tld/xxx.tld</taglib-location>
</taglib>和<%@ taglib prefix="xxx" uri="http://www.xxx.com/taglibs/utils" %>
to jinxfei: 我应该在sever.xml的path和docbase,加上我的相对目录"\"么?相对于哪个的相对路径?
<filter-mapping>
<filter-name>webwork</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping>
在webwork.properties里还写了webwork.action.extension=action,do这句会不会是它们的原因?