|  | Level: Intermediate Daniel Wintschel (daniel@humandoing.net), Author and developer, Freelance
13 Sep 2005 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:
- Download and install the following applications:
- Geronimo Milestone 4 or later.
- Apache ANT 1.6.5.
- J2SE 1.4.2_09.
- Make sure that the environment variables outlined in Table 1 are defined in your shell.
Table 1. Setting the environmental variables
| Variable name | Required 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
|
- Extract the supplied .zip file to your preferred location (this will be the project root).
Duration
Under two hours
Formats html, pdf
|  | |  |
|