Raible's Wiki

Raible Designs
Wiki Home
News
Recent Changes

AppFuse

Homepage
  - Korean
  - Chinese
  - Italian
  - Japanese

QuickStart Guide
  - Chinese
  - French
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish
  - Japanese

User Guide
  - Korean
  - Chinese

Tutorials
  - Chinese
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish

FAQ
  - Korean

Latest Downloads

Other Applications

Struts Resume
Security Example
Struts Menu

Set your name in
UserPreferences

Edit this page


Referenced by
JSPWikiTags




JSPWiki v2.2.33

[RSS]


Hide Menu

CheckRequestContextTag


Allows you to determine which JSP page originally got the request. It is very useful to know this when you are including specific information on a page.

Available contexts are:

  • "view" - Wiki.jsp
  • "edit" - Edit.jsp
  • "diff" - Diff.jsp
  • "info" - PageInfo.jsp
  • "preview" - Preview.jsp
  • "conflict" - PageModified.jsp
  • "upload" - Upload.jsp
  • "error" - Error.jsp
  • "find" - Search.jsp
  • "prefs" - UserPreferences.jsp

Usage

HTML or JSP

Parameters

context
Context to check. If the context matches, includes the body.

Example

This example comes from ViewTemplate.jsp:

      <wiki:CheckRequestContext context="view">
         <wiki:Include page="PageContent.jsp" />
      </wiki:CheckRequestContext>

      <wiki:CheckRequestContext context="diff">
         <wiki:Include page="DiffContent.jsp" />
      </wiki:CheckRequestContext>

      <wiki:CheckRequestContext context="info">
         <wiki:Include page="InfoContent.jsp" />
      </wiki:CheckRequestContext>

      <wiki:CheckRequestContext context="preview">
         <wiki:Include page="PreviewContent.jsp" />
      </wiki:CheckRequestContext>

      <wiki:CheckRequestContext context="conflict">
         <wiki:Include page="ConflictContent.jsp" />
      </wiki:CheckRequestContext>

      <wiki:CheckRequestContext context="find">
         <wiki:Include page="FindContent.jsp" />
      </wiki:CheckRequestContext>


Go to top   Edit this page   More info...   Attach file...
This page last changed on 06-Nov-2006 13:52:58 MST by unknown.