|
|
ConfigurationReference
Configuration reference
Properties
Here are all of the properties that can be used to control the behavior of SmartURLs and default values.
| Name | Description | Default |
| smarturls.base.result.location | Controls the base location within the web application or classpath of the results for actions (e.g. JSPs, FreeMarker templates, etc) | /WEB-INF/content/ |
| smarturls.action.default.parent.package | The default parent package for all of the actions setup by SmartURLs | smarturls-default |
| smarturls.action.name.lowercase | Controls whether or not class names are lowercased when SmartURLs is converting them to action names | true |
| smarturls.action.name.separator | The separator used after class names have been split based on camel-case and are being joined back together to form the action name | - (dash) |
| smarturls.relative.result.types | A comma separated list of the result types that are relative to the base result location | dispatcher,velocity,freemarker |
| smarturls.component.testing | Tells SmartURLs that the application being run is a test application used to test a component and not a complete application. This will ensure that only components are loaded and no actions are resolved otherwise. | false |
Component XML
Here is a list of the elements of the component XML file, attributes and their meanings.
The component element
Attributes
| Name | Description |
| name | The name of the component (required) |
Example
<component name="foo">
The action_package element
There can be many of these elements in the component.xml file.
Attributes
| Name | Description |
| namespace_prefix | Specifies a namespace prefix for all of the actions in the action package and sub-packages. This String is prepended to all of the namespaces for each action. |
Example
<action_package namespace_prefix="/prefix">com.example.actions</action_package>
The base_result_location element
This element is optional and there can be only one specified.
Attributes
None
Example
<base_result_location>/WEB-INF/component/results</base_result_location>
Sign in to add a comment
