XHTML JSP Object Tag Library

Welcome the XHTML JSP Object Tag Library.

Our sponsors

This project is hosted by The code for this was donated by Ansir Development Limited. If you find this project helpful then donations to this project are welcome but not required.

About the XHTML JSP Object Tag Library

The XHTML JSP Object Tag Library was created to simplify writing common object markup for XHTML. Currently Java applets (JRE 1.5+), Flash, and YouTube objects are supported. By using the XHTML JSP Object Tag Library your JSP content developers write simple tags as shown. The resulting XHTML is created for Internet Explorer or for the generic browser. No client side JavaScript is required.


A stable build of the code is available.

  1. Download then code from
  2. Unzip to your local hard drive.
  3. Drop the entire example directory in a tomcat context.
  4. Launch the example.
  5. Source is available in the src directory.
  6. Javadocs for the source is available in the docs directory.
  7. You may also obtain the code via anonymous cvs (scroll down for cvs instructions).


<ansir:youtube movieurl=""/>

On Internet Explorer the XHTML is:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
    width="425" height="350">
    <param name="movie" value="" />
    <param name="quality" value="low" />

On Firefox the XHTML is:

<object type="application/x-shockwave-flash"
    width="425" height="350">
    <param name="movie" value="" />
    <param name="quality" value="low" />

CVS Instructions

  1. Log in the cvs by typing "cvs login"
  2. Just hit the enter key as no password is required for anonymous cvs.
  3. Checkout the projects module. I prefer to use the "Checkout into directory" and give the project a name like "objecttag"

Building Instructions

  1. The project is designed for Eclipse but you can use whatever editor or IDE you prefer.
  2. The Ant build.xml script will build the project regardless of your development environment.
  3. The Ant script creates a "build" directory. Dig into this directory and you'll find a WEB-INF/lib directory with the "ansirtaglib.jar".
  4. Copy the new ansirtaglib.jar into your web app. Our preferred web app development environment is Netbeans.
  5. If there have been any changes to the "tld", then pdate the ansirtaglib.tld in your web app.
  6. Restart and test your web app.

WinCVS Visual Guide

cvs login

cvs checkout.png