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

InsertDiffTag


Inserts a diff between two pages. The "Diff.jsp" places two variables into the JSP PageContext:

  • insertdiff.old - The version number of the old version.
  • insertdiff.new - The version number of the new version.

These have been parsed from the HTTP parameters by "Diff.jsp".

The resulting HTML uses a few CSS styles:

  • TABLE.diff - The whole table gets this style.
  • TD.diff - Each unchanged line gets this.
  • TD.diffadd - Each added line gets this style.
  • TD.diffrem - Each removed line gets this style.

Usage

Parameters

page
Page name.

Example

<wiki:InsertDiff />

Might result into something like this:

   <table class="diff" border=0 cellspacing=0 cellpadding=0>
       <tr><td class="diff">Line 16 was replaced by line 16</td></tr>
       <tr><td bgcolor=#FF9933 class="diffrem">- [Sandbox/cens7.gif]</td></tr>
       <tr><td bgcolor=#99FF99 class="diffadd">+ Foobar.</td></tr>
   </table>


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