Cleans up exported page
Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/cf8b3e1f Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/cf8b3e1f Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/cf8b3e1f Branch: refs/heads/master Commit: cf8b3e1f84003bc5f07a52695e6f4cc4138dfe73 Parents: bbbbf10 Author: Lukasz Lenart <lukaszlen...@apache.org> Authored: Mon Jul 31 16:21:20 2017 +0200 Committer: Lukasz Lenart <lukaszlen...@apache.org> Committed: Mon Jul 31 16:21:20 2017 +0200 ---------------------------------------------------------------------- source/core-developers/package-configuration.md | 54 +++++++------------- 1 file changed, 19 insertions(+), 35 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/struts-site/blob/cf8b3e1f/source/core-developers/package-configuration.md ---------------------------------------------------------------------- diff --git a/source/core-developers/package-configuration.md b/source/core-developers/package-configuration.md index d1ec9ed..8d4719a 100644 --- a/source/core-developers/package-configuration.md +++ b/source/core-developers/package-configuration.md @@ -5,45 +5,33 @@ title: Package Configuration # Package Configuration -Packages are a way to group actions, results, result types, interceptors, and interceptor\-stacks into a logical configuration unit\. Conceptually, packages are similiar to objects in that they can be extended and have individual parts that can be overridden by "sub" packages\. +Packages are a way to group actions, results, result types, interceptors, and interceptor-stacks into a logical +configuration unit. Conceptually, packages are similar to objects in that they can be extended and have individual +parts that can be overridden by "sub" packages. -#####Packages##### +## Packages -The package element has one required attribute, +The package element has one required attribute `name`, which acts as the key for later reference to the package. +The `extends` attribute is optional and allows one package to inherit the configuration of one or more previous packages +- including all interceptor, interceptor-stack, and action configurations. -~~~~~~~ -name -~~~~~~~ -, which acts as the key for later reference to the package\. The +> Note that the configuration file is processed sequentially down the document, so the package referenced +> by an "extends" should be defined _above_ the package which extends it. -~~~~~~~ -extends -~~~~~~~ - attribute is optional and allows one package to inherit the configuration of one or more previous packages \- including all interceptor, interceptor\-stack, and action configurations\. - - (\!) Note that the configuration file is processed sequentially down the document, so the package referenced by an "extends" should be defined _above_ the package which extends it\. - -The optional - -~~~~~~~ -abstract -~~~~~~~ - attribute creates a base package that can omit the action configuration\. +The optional `abstract` attribute creates a base package that can omit the action configuration. | Attribute | Required | Description | |-----------|----------|-------------| | name |**yes**| key to for other packages to reference | | extends | no | inherits package behavior of the package it extends | -| namespace | no | see [Namespace Configuration](#PAGE_14276)| +| namespace | no | see [Namespace Configuration](namespace-configuration.html)| | abstract | no | declares package to be abstract (no action configurations required in package) | -__Simple usage__ - -**Package Example (struts\.xml)** - +### Simple usage -~~~~~~~ +**Package Example (struts.xml)** +```xml <struts> <package name="employee" extends="struts-default" namespace="/employee"> <default-interceptor-ref name="crudStack"/> @@ -72,16 +60,13 @@ __Simple usage__ </action> </package> </struts> +``` -~~~~~~~ +### Inherit from more than one package -__Inherit from more than one package__ - -**Multi package Example (struts\.xml)** - - -~~~~~~~ +**Multi package Example (struts.xml)** +```xml <struts> <package name="employee" extends="struts-default, json-default" namespace="/employee"> @@ -94,5 +79,4 @@ __Inherit from more than one package__ </package> </struts> - -~~~~~~~ \ No newline at end of file +```