Support
Help Save Reptile!
Navigation

Essentials

Installation

Developers

P2P (content distribution)

Search Infrastructure

Services

Proposals

Resources

Parameters

Reptile needs a way to pass information from client application to the server and from the server to Xalan for XSLT processing. This is done via a set of named parameters.

Parameters can also be passed from rendered content to the server via HTML forms. These are passed to the XSL Transformer and are available to stylesheets. Note that if you choose to use parameters in your stylesheets try to namespace them. Don't use a parameter of "fetch". Instead use a parameter of "urn:myapplication/param/fetch" or some other namespaced param. This prevents other stylesheets which you did not write from being unintentionally tricked into doing something if two parameter names are identical.


Parameters available to stylesheets

reptile.home.location:
The default URL for the ReptileServlet. This can be used within stylesheets when creating HTML forms.
reptile.current.location:
The URL currently requested/displayed for the ReptileServlet.
reptile.content.location:
If content is being transformed, this represents the location of said content.
reptile.content.type:
If content is being transformed, this represents the contentType of said content.
reptile.sequence.name:
The current sequence name.


Parameters available to the server

These can be used from your stylesheets trigger events on the server. These are usually passed via HTTP post/get operations.

reptile.action:
Invoke an Action in the org.apache.reptile.actions package.
reptile.action.next.sequence:
A sequence to use with a layer after an action is run. This uses an HTTP redirect to prevent a URL accidentally being refreshed with and inadvertently invoking an action.
reptile.action.next.layer:
A layer to use with a sequence after an action is run. This uses an HTTP redirect to prevent a URL accidentally being refreshed with and inadvertently invoking an action.


Java system properties

reptile.system.initialized
Has a value of "true" if reptile has been fully initialized
reptile.system.restarted
Has a value of "true" if reptile has been restarted. This is set by the destroy() method in ReptileServlet.
reptile.system.feeds.disabled
The systems feeds should be disabled
reptile.system.tasks.disabled
Tasks should be disabled
reptile.sequence.debug.enabled
Enable the sequence debug system
reptile.system.auth-disabled
Disable Reptile authentication for new users. This is nice to turn off in debug or single user mode.



Copyright © 2001-2003, OpenPrivacy.org