配置 tiles 时,报出了异常信息:
The content of element type "struts-config" must match "(display-name?,description?,form-beans?,global-exceptions?,global-forwards?,action-mappings?,controller?,message-resources*,plug-in*)".
解决办法:
struts-config.xml 中的元素顺序有严格的要求,它们的位置不能错位,不然就会报错.
正确的顺序,参考代码:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN" "http://struts.apache.org/dtds/struts-config_1_3.dtd"> <struts-config> <form-beans> </form-beans> <global-exceptions> </global-exceptions> <global-forwards> </global-forwards> <action-mappings> <action path="/index" type="org.apache.struts.actions.ForwardAction" parameter="index-tiles"></action> </action-mappings> <controller> <set-property property="processorClass" value="org.apache.struts.tiles.TilesRequestProcessor"/> </controller> <message-resources parameter="com.test.struts.ApplicationResources" /> <plug-in className="org.apache.struts.tiles.TilesPlugin"> <set-property value="/WEB-INF/tiles/tiles-defs.xml" property="definitions-config"></set-property> </plug-in> </struts-config>
注意:
struts-config.xml必须按照 display-name --> description --> form-beans --> global-exceptions --> global-forwards --> action-mappings --> controller --> message-resources --> plug-in 的顺序书写 .
相关推荐
of the following work: . The dataset is avaliable at link : [WikiBio] (https://github.com/DavidGrangier/wikipedia-biography-dataset) You can also use the following command to download the dataset and ...
Magento Servlet 实现 这是在 servlet 引擎中将 Magento 作为 servlet 运行的简约 servlet 实现。 问题 为了捆绑我们的努力,我们希望在收集有关此包的所有问题... < display>Mage Servlet</ display> < descripti
SimpleJsonApi::Rails 遵循规范呈现 json 的 。 安装 将此行添加到应用程序的 Gemfile 中: gem 'simple_json_api-rails' 然后执行: ... attribute :name , key : :project_name attribute :descripti
role_name" varchar(6" not null " " " "4) " " " 创建时间 " gen_time " datetime " not null " " 角色描述 " descripti" varchar(2" " " "on "00) " " 3. 权限表 " 权限表(TRight) " " 字段名" ...
**Detailed description of issue**Write a detailed explanation of the issue here.**Steps To Reproduce:**1: Detailed Steps to reproduce the issue 2: Clear steps3: Etc**Expected Results:**A descripti
一、告警通知 为了及时通知商户异常,提高商户在微信平台的服务质量。微信后台会向商户推送告警通知,包括发货延迟、调用失败、通知失败等情况,通知的地址是商户在... <ErrorType>1001</ErrorType> <Descripti
Play 商店爬虫 从 Google Play 商店获取搜索结果和应用信息的简单快捷方式。 安装 npm install playstore-scraper 用法 const playstore = require ( "playstore-scraper" ) ; // A simple search: ... "descripti
Nodejs好久没有跟进了,最近想用它搞一个聊天室,然后便偶遇了socket.io这个东东,说是可以用它来简单的实现实时双向的基于事件的通讯机制。我便看了一些个教程使用它来搭建一个超级简单的聊天室。... "descripti
术语学飞溅站点 这是我们在GitHub上托管的“页面”站点,是Terasology的初始站点。 它意在成为我们最受欢迎的链接和资源(例如内部版本,论坛,Wiki等)的轻巧前端。...description : > # This is a brief descripti
有监督的方法命令性任务列表分类 该存储库包含用于对自然语言待办事项列表项进行分类的语料库和代码库,如我们在论文。 该存储库包含: 公开的。 与发表的结果相似的。 目录 预测 ...board_name ...descripti
bilibili错误代码 基于[来源请求][数据删除]的[数据删除]站的错误代码对应表。 开始使用 package example import ( "fmt" ...) func main () { var code = ecode .... fmt .... fmt .... Printf ( "Descripti
在很多场景中如java开发spark时,是不通过spring进行管理的,这时候就要手动去取properties中的配置,手动取配置如下:* @descripti
新视觉概念(NVC)数据集...引文如果您发现此数据集和注释对您的研究有用,请考虑引用: @inproceedings{mao2015learning, title={Learning like a Child: Fast Novel Visual Concept Learning from Sentence Descripti
在项目中可能会有许多需要输入手机号码、银行卡号或者身份证号等内容的输入框。如果直接输入的话将会是一堆号码堆在一起,第一是不太美观,第二也容易出错,用户体验不太好。但是若将输入的号码按特定... * @Descripti
快速CSV C#中的快速CSV阅读器编写器。 安装 在NuGet.org上可以使用mgholam.fastCSV来 。 > dotnet add package mgholam.fastCSV 特征 完全符合CSV标准 多线 带引号的列 ... public string Descripti
页面xduty Elixir 的 PagerDuty 客户端。 安装 将 pagexduty 作为依赖项添加到您的项目: defp deps do [{ :pagexduty , " ~> 0.1.0 " }] end 并将 pagexduty 添加到...# Create an incident with a descripti