...
Since the struts.xml
file is always loaded last, it can make use of any resources provided by the plugins bundled with the distribution, or any other plugins available to an application.
Static resources
To include static resources in your plugins add them under "/static" in your jar. And include them in your page using "/static" as the path, like in the following example:
Code Block | ||||
---|---|---|---|---|
| ||||
Assuming /static/main.css is inside a plugin jar, to add it to the page:
<@s.url value="/static/main.css" var="css" />
<link rel="stylesheet" type="text/css" href="%{#css}" />
|
Extension Points
Extension points allow a plugin to override a key class in the Struts framework with an alternate implementation. For example, a plugin could provide a new class to create Action classes or map requests to Actions.
...