Skip to main content


developerWorks  >  Open source | Java technology | WebSphere  >

Powerful browser detection and custom JSP tags with Geronimo

Use Geronimo and Jetty to create a browser and OS detection scheme

developerWorks

Level: Intermediate

Daniel Wintschel (daniel@humandoing.net), Author and developer, Freelance

13 Sep 2005

Register now or sign in using your IBM ID and password.

Learn how to take advantage of Apache Geronimo and Jetty to create a powerful browser and open source detection scheme. In addition to the open source (OS) Geronimo application server, this tutorial shows you how to use freely available JavaScript programs to perform browser and OS detection on the client side.

In this tutorial

  • Custom JSP tags -- a refresher

  • JavaScript for browser detection

  • Design strategy

  • Server-side components

  • JSP components and sample usage

  • Trying it out

Prerequisites

This tutorial assumes that you have basic knowledge of the Java Servlet API and the Java programming language. Some knowledge of JavaScript won't hurt either.


System requirements

To run the example code in this tutorial, you need to perform the following steps:

  1. Download and install the following applications:
    • Geronimo Milestone 4 or later.
    • Apache ANT 1.6.5.
    • J2SE 1.4.2_09.
  2. Make sure that the environment variables outlined in Table 1 are defined in your shell.
    Table 1. Setting the environmental variables
    Variable nameRequired setting
    GERONIMO_HOME Set to the root folder of your Geronimo installation
    ANT_HOME Set to the root folder of your Ant installation
    JAVA_HOME Set to the root folder of your Java installation
    PROJECT_HOME Set to the root folder of your BrowserDetection application
    PATH Ensure that ANT_HOME/bin is in your PATH
  3. Extract the supplied .zip file to your preferred location (this will be the project root).


Duration

Under two hours


Formats

html, pdf


Share this....

digg Digg this story del.icio.us del.icio.us Slashdot Slashdot it!


Back to top


Document options

Document options requiring JavaScript are not displayed


New site feature

Check out our new article design and features. Tell us what you think.