Skip to main content

 Advanced

Advanced topics

Generator: GetXMLFileFromRelativePathParameter

Class name:org.weborganic.bastille.xml.GetXMLFileFromRelativePathParameter
Version:8 July 2011
Library:Bastille
Cacheable:Yes
Generated:2012-12-21

Description

This generator returns the static content by providing relative path parameter.

Only return the content under the website root folder, by default ( WEB-INF/xml ).

Parameter

  • relative-path – defines the request relative path from the berlioz website root.

Use the element <parameter> to define relative-path in server.xml.

Sample Berlioz config:

<generator
  class="com.weborganic.bastille.xml.GetXMLFileFromRelativePathParameter"
  name="navigation"
  target="navigation">
  <parameter name="relative-path" value="config/navigation.xml" />
</generator>
Created on , last edited on