WorldWander logo
Main

The Road Behind

Venezuela
Trinidad
Curacao
Galapagos
Ecuador
Peru
Bolivia
Paraguay
Argentina
Chile
Hong Kong
Thailand North
Thailand South
Malaysia
Cambodia
Singapore
Nepal
Kathmandu
Royal Trek
Nepal Trek
India
India Palace
Udaipur
Bangalore
Greece
Islands
Rhodes
Camping
Olympia
Turkey
Istanbul
Bath
Bursa
Cappadocia
Bodrum
South Africa
Garden Route
Cape Town
Namibia
Fish River
Etosha
Botswana
Zimbabwe
Wedding
Great Ruins
Germany
Bathroom
Netherlands
Spain
Madrid
Seville
Granada
Gibraltar
Morocco
Portugal
Sintra
France
Normandy
Egypt
Pyramids
Nile
Aswan
Abusimbel
Luxor
Valley of Kings
Alexandria
Red Sea
Jordan
Kings Valley
Aman
Palestine

The Road Ahead

Isreal
Czech Republic
Austria
Italy
Switzerland
England
Find pages
Unused pages
Undefined pages
Page Index

Set your name in
UserPreferences


Referenced by
Counter
PageFilters
SpamFilter
SystemInfo
TextFormattingRules
VariableTag




JSPWiki v2.2.33


WikiVariables


Variable evaluation order

The variables are evaluated in the following order:

  1. 'Preset' variables (or constants), as those listed on this page.
  2. 'Context' variables, as those set by plugins and tags.
  3. 'Property' variables, like those set in jspwiki.properties.
  4. 'Page' variables, like those set using the "SET" directive.
In JSPWiki 2.2, the variable system has been enhanced somewhat. You can use the "SET" -directive on any of your own pages to set a variable that exists only in the page.

For example:

[{SET foo='bar'}]

creates you a variable called "foo", which has the value of "bar". You can access this value anywhere on your page by using the shorthand "[{$foo}]".

JSPWiki also defines all kinds of other variables, and tags and plugins can also add their own variables. For example, see the Counter plugin. The following variable are preset by JSPWiki:

applicationname

This is the name of this Wiki. It has been set by the administrator in "jspwiki.properties". This Wiki is called go.

baseurl

The base URL address for this wiki.

encoding

Describes the character encoding used in this Wiki. An encoding of "UTF-8" means that the Wiki accepts any character, including Chinese, Japanese, etc. Encoding "ISO-8859-1" means that only western languages are supported. This wiki uses the UTF-8 encoding.

inlinedimages

Lets you know which image types are being inlined.

Writes HTML code for supported InterWiki links.

jspwikiversion

Inserts the version number of the JSPWiki engine. For example, this version is 2.2.33.

loginstatus

Shows how the current user has logged in. For example, you are unknown (not logged in).

uptime

Inserts the amount of time since this Wiki has been last restarted. This wiki has been up for 317d, 7h 20m 9s.

pagename

Inserts the current page name. Example: This page is called WikiVariables.

pageprovider

The current PageProvider.

pageproviderdescription

A verbose, HTML description about the currently used page provider.

requestcontext

The current RequestContext. For example, this is the view context.

totalpages

The total number of pages available in this Wiki.

username

Inserts the current user name: For example, you are now logged in as 54.82.166.45.

Inserting JSPWiki properties

You can also access some of the JSPWiki properties (that have been defined by the site maintainer) by using their property names directly. See SystemInfo for an example. Note that some properties might not be accessible due to security reasons.




Go to top  
This page last changed on 20-Oct-2003 03:07:34 UTC by unknown.
Please make one.