"Quickening the Pace of JSP Development" Friday, March 19, 2010
Home Products Pricing Company Contact Us Samples Download Forums Javadoc Customers
    « Form Tags »
    « I/O Tags »
    « Format Tags »
    « Utility Tags »
Watermark Tag Example

The <dotj:watermark> tag can be used to display a watermark image for the background of the page. Since it is a watermark, it is fixed and will not move when the page is scrolled.

Newer web browsers support this feature, but older ones will ignore the image.

The tag can be placed anywhere in the JSP page since it effectively does not add any content to the page. If more than one watermark tags are placed in a JSP, then the first one is used and the others will be ignored.

The location attribute can be used to control where on the page the watermark will display. Options are:
  • Top left
  • Top center
  • Top right
  • Center left
  • Center center (the default)
  • Center right
  • Bottom left
  • Bottom center
  • Bottom right
Give it a try! Select a location with the dropdown below to place the watermark image anywhere on the page.

Location:





          Back to Samples page


home : products : pricing : company : contact us : samples : download : forums : customers

Copyright © 2000-2004 dotJ Software Inc. All rights reserved.