,,,, 为什么我的项目里有小红叉,,,

来源:百度知道 编辑:UC知道 时间:2024/07/08 22:11:05
我用的是STRUTS 但是为什么怎么弄项目上中有小红叉,,, 但是展开之后又没有错,,,, 为什么,,,,
web.xml配置贴出,,,

<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>
FirstStruts</display-name>
<servlet>
<servlet-name>strutsController</servlet-name>
<servlet-class>
org.apache.

因为你在web.xml重新配置了标签的uri:

<jsp-config>
<taglib>
<taglib-uri>struts-html</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>sturts-bean</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>struts-logic</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-logic.tld</taglib-location>
</taglib>
</jsp-config>

这部分配置后,你没有修改页面上导入的struts标签的uri,所以报错

可以把这部分删除,或是修改页面上<%@taglib%>中的uri属性

关注