惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

月光博客
月光博客
博客园_首页
大猫的无限游戏
大猫的无限游戏
Recent Announcements
Recent Announcements
量子位
H
Help Net Security
D
Docker
小众软件
小众软件
Google DeepMind News
Google DeepMind News
U
Unit 42
H
Hackread – Cybersecurity News, Data Breaches, AI and More
I
InfoQ
S
SegmentFault 最新的问题
罗磊的独立博客
云风的 BLOG
云风的 BLOG
Vercel News
Vercel News
Martin Fowler
Martin Fowler
D
DataBreaches.Net
AI
AI
SecWiki News
SecWiki News
V
Visual Studio Blog
Google Online Security Blog
Google Online Security Blog
腾讯CDC
J
Java Code Geeks
Jina AI
Jina AI
O
OpenAI News
N
News | PayPal Newsroom
Help Net Security
Help Net Security
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Cloudbric
Cloudbric
S
Secure Thoughts
V
V2EX
N
News and Events Feed by Topic
F
Full Disclosure
MyScale Blog
MyScale Blog
The Cloudflare Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
Attack and Defense Labs
Attack and Defense Labs
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Forbes - Security
Forbes - Security
T
Troy Hunt's Blog
WordPress大学
WordPress大学
H
Hacker News: Front Page
D
Darknet – Hacking Tools, Hacker News & Cyber Security
B
Blog
Engineering at Meta
Engineering at Meta
Latest news
Latest news
Blog — PlanetScale
Blog — PlanetScale
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org

博客园 - 敌后武工队

【攻克RabbitMQ】常见问题 MQ常问的问题 使用Docker在本地搭建Hadoop分布式集群 Centos7上安装docker VMware安装Centos7超详细过程 centos7配置IP地址 数据框架对比:Hadoop、Storm、Samza、Spark和Flink——flink支持SQL,待看 Centos版Linux 一些常用操作命令 Spring MVC 3.0.5+Spring 3.0.5+MyBatis3.0.4全注解实例详解(五) Spring MVC 3.0.5+Spring 3.0.5+MyBatis3.0.4全注解实例详解(四) Spring MVC 3.0.5+Spring 3.0.5+MyBatis3.0.4全注解实例详解(三) Spring MVC 3.0.5+Spring 3.0.5+MyBatis3.0.4全注解实例详解(二) Spring MVC 3.0.5+Spring 3.0.5+MyBatis3.0.4全注解实例详解(一) Spring定时任务的几种实现 Hibernate中的query.setFirstResult(),query.setMaxResults(); 在MyEclipse中如何去掉JS或jsp语法错误提示! 高并发高流量网站架构 ASP.NET性能优化之分布式Session ASP.NET中如何实现负载均衡
web.xml配置文件 taglib
敌后武工队 · 2014-03-16 · via 博客园 - 敌后武工队

web.xml的内容如下:

<?xml version="1.0" encoding="UTF-8"?>
<web-app 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">
    
    <filter>
        <filter-name>struts2</filter-name>
        <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>struts2</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
    
    <taglib>
        <taglib-uri>struts2</taglib-uri>
        <taglib-location>/WEB-INF/tld/struts-tags.tld</taglib-location>
    </taglib>
</web-app>
在MyEclipse中会在taglib那一行有一个错误标志,但是运行的 时候没有问题……

原因:

所使用版本的问题,如果使用2.3版本就可以直接在<web-app>里面写:

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

如果是用的是2.4版本,就不能直接这么写了,应该:

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