第 15 章 Apache Struts

You can checkout all the example applications from the Struts 2 GitHub repository at https://github.com/apache/struts-examples.

15.1. struts.xml

web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns="http://java.sun.com/xml/ns/javaee"
	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
	id="WebApp_ID" version="3.0">
	<display-name>helloworld</display-name>
	<welcome-file-list>
		<welcome-file>index.html</welcome-file>
		<welcome-file>index.htm</welcome-file>
		<welcome-file>index.jsp</welcome-file>
		<welcome-file>default.html</welcome-file>
		<welcome-file>default.htm</welcome-file>
		<welcome-file>default.jsp</welcome-file>
	</welcome-file-list>

	<filter>
		<filter-name>struts2</filter-name>
		<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
	</filter>

	<filter-mapping>
		<filter-name>struts2</filter-name>
		<url-pattern>/*</url-pattern>
	</filter-mapping>

</web-app>		

15.1.1. include

	<include file="/cn/netkiller/struts/ajax.xml" />
	<include file="/cn/netkiller/struts/admin.xml" />
	<include file="/cn/netkiller/struts/logs.xml" />		

原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

时间: 2024-07-30 19:15:32

第 15 章 Apache Struts的相关文章

jBPM-4.0中文开发指南-第15章 流程语言

第 15 章 流程语言 TODO: XML解析器结构 TODO: 继承自ProcessDefinitionImpl, ExecutionImpl TODO: 重写默认的proceed() TODO: 活动类型实现 TODO: 持久化 TODO: 补偿:像bpel和bpnm这样的语言,定义为 一个普通的整合,满足流程结构中的可用性, 在pvm中(选择一个转移和 执行内嵌活动).

execl-apue第15章15.6这个例子实验了一下,没有任何输出?怎么回事?

问题描述 apue第15章15.6这个例子实验了一下,没有任何输出?怎么回事? int n, fd[2]; pid_t pid; pipe(fd); FILE *fp; char *pager, *argv0; char buff[100]; unsigned int nread; if ((fp = fopen(argv[1], "r")) < 0) printf("open error!n"); if ((pid = fork() < 0)) pri

第15章 迭代器模式(Iterator Pattern)

原文 第15章 迭代器模式(Iterator Pattern) 迭代器模式(Iterator Pattern)      概述:           在面向对象的软件设计中,我们经常会遇到一类集合对象,这类集合对象的内部结构可能有着各种各样的实现,但是归结起来,无非有两点是需要我们去关心的:一是集合内部的数据存储结构,二是遍历集合内部的数据.面向对象设计原则中有一条是类的单一职责原则,所以我们要尽可能的去分解这些职责,用不同的类去承担不同的职责.Iterator模式就是分离了集合对象的遍历行为,

c++ mfc-孙鑫视频第15章,多线程的创建,用互斥机制模拟火车票售票,我的问题,望大神指点

问题描述 孙鑫视频第15章,多线程的创建,用互斥机制模拟火车票售票,我的问题,望大神指点 问题:当我设的总票数超过298时(比如500,1000),我的票都是从第298张开始卖的,正常的应该是总票数是多少张,就是从多少张开始卖的吧,当总票数小于298时,就是正常卖票,下面是我的代码,和运行结果的图片(当票数为500时),我的编译环境是vs 2008请大神指点 #include #include using namespace std; DWORD WINAPI ThreadFun1(In LPV

绿盟科技网络安全威胁周报2017.27 关注Apache Struts远程代码执行漏洞CVE-2017-9791

绿盟科技发布了本周安全通告,周报编号NSFOCUS-17-26,绿盟科技漏洞库本周新增46条,其中高危9条.本次周报建议大家关注 Apache Struts远程代码执行漏洞 .目前厂商已经为此发布了一个 安全公告 (S2-048)以及相应补丁,请用户及时下载更新. 焦点漏洞 Apache Struts远程代码执行漏洞 NSFOCUS ID  37074 CVE ID  CVE-2017-9791 受影响版本 Apache Struts Version:2.3.x 漏洞点评 Apache Stru

《CCNA无线640-722认证考试指南》——第15章 配置WLAN

第15章 配置WLANCCNA无线640-722认证考试指南本章主要讨论以下主题: WLAN概述--本节将简要回顾WLAN的基本概念以及一些使用经验:配置WLAN--本节将讨论在Cisco WLAN控制器上创建WLAN的相关步骤. 本章将包含如下考试主题: 创建WLAN控制器和AP WLC:端口.接口.WLAN.NTP.CLI和Web UI.CLI向导以及LAG (Link Aggregation Group,链路聚合组) AP:信道和功率WLC(WLAN Controller,WLAN控制器)

org.apache.struts.actions.DispatchAction.dispatchMethod是什么错?

问题描述 javax.servlet.ServletExceptionatorg.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:294)atorg.apache.struts.actions.DispatchAction.execute(DispatchAction.java:187)atorg.apache.struts.action.RequestProcessor.processActionP

《Spark与Hadoop大数据分析》一一第2章 Apache Hadoop和Apache Spark入门

第2章 Apache Hadoop和Apache Spark入门 在本章,我们将学习 Hadoop 和 Spark 的基本知识,了解 Spark 与 MapReduce 有哪些不同,并开始安装集群和设置分析所需的工具.本章分为以下几个子主题:介绍 Apache Hadoop介绍 Apache Spark讨论为什么要配套使用 Hadoop 和 Spark安装 Hadoop 和 Spark 集群

《Spark与Hadoop大数据分析》——第2章 Apache Hadoop和Apache Spark入门

第2章 Apache Hadoop和Apache Spark入门 在本章,我们将学习 Hadoop 和 Spark 的基本知识,了解 Spark 与 MapReduce 有哪些不同,并开始安装集群和设置分析所需的工具. 本章分为以下几个子主题: