web.xml的内容如下:
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">
struts2
org.apache.struts2.dispatcher.FilterDispatcher
struts2
/*
struts2
/WEB-INF/tld/struts-tags.tld
在MyEclipse中会在taglib那一行有一个错误标志,但是运行的 时候没有问题……
原因:
所使用版本的问题,如果使用2.3版本就可以直接在里面写:
struts2
/WEB-INF/tld/struts-tags.tld
如果是用的是2.4版本,就不能直接这么写了,应该:
struts2
/WEB-INF/tld/struts-tags.tld