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
JSPWikiTags




JSPWiki v2.2.33


UserCheckTag


Includes its body, if the user check validates.

Usage

<wiki:UserCheck status="unknown|known|named|validated|unvalidated">
   JSP or HTML content
</wiki:UserCheck>

Parameters

status
Is used to determine if the user has logged in or what. See below.

The possible values of "status" are:

  • "unknown" - the body of the tag is included if the user is completely unknown (no cookie, no password)
  • "known" - the body of the tag is included if the user is not unknown (i.e has a cookie, or has been authenticated.
  • "named" - the body of the tag is included if the user has either been named by a cookie, but not been authenticated.
  • "validated" - the body of the tag is included if the user is validated either through the container, or by our own authentication.
  • "unvalidated" - the body of the tag is included if the user is not validated (i.e. he could have a cookie, but has not been authenticated.)

In 2.0 there was an attribute called "exists". This is now deprecated, but it is still recognized. See below.

Example

    <wiki:UserCheck status="known">
        G'day,<wiki:UserName />
    </wiki:UserCheck>

    <wiki:UserCheck status="unknown">
        Set your name in <wiki:LinkTo page="UserPreferences">UserPreferences</wiki:LinkTo>
    </wiki:UserCheck>

Displays a greeting, if the user has either set a cookie or logged in; else displays a link to the page UserPreferences.

Notes

The behavior of this tag was significantly enhanced in 2.2. The old tag had the parameter "exists", which corresponds to the status parameter as follows:

OLD

<wiki:UserCheck exists="true">
Replace with
<wiki:UserCheck status="known">

OLD

<wiki:UserCheck exists="false">
Replace with
<wiki:UserCheck status="unknown">



Go to top  
This page last changed on 03-Jun-2003 04:23:50 UTC by unknown.
Please make one.