Skip to main content


developerWorks  >  Web development | Open source  >

Programming Hamlets

developerWorks

Level: Intermediate

René Pawlitzek (rpa@zurich.ibm.com), Research and Development Engineer, IBM

24 May 2005
Updated 13 Mar 2007

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

This tutorial illustrates various aspects of Hamlet programming as it provides a number of practical Hamlet examples. The examples are part of WebZEC (Web-based Zurich Event Console) -- a fast, browser-based console to quickly navigate in intrusion-detection alarms. With these samples, you can develop a good understanding how to use Hamlets for Web-based application development and how Hamlets work.

In this tutorial

  • Introduction

  • Clock example

  • Login example

  • PropertiesView example

  • ListViewList example

  • EventView example

  • OptionView example

  • ErrorView example

  • Wrap up

  • Appendix A: Sample hamlet implementation

  • Appendix B: Utility classes

Prerequisites

  • This tutorial assumes that the reader has experience with HTML or XHTML. The XHTML code used in the examples is not explained.
  • It is also assumed that the reader is familiar with the Java language and the concepts of object-oriented programming. Hamlets are servlet extensions, and therefore a good understanding of Java servlets is essential.

System requirements

  • You will need JavaScript enabled in your browser.
  • The examples in this tutorial were built with the Apache Ant build utility (http://ant.apache.org/) and deployed on the Apache Tomcat servlet container (http://jakarta.apache.org/tomcat/).
  • They require the hamlet.jar library which is available from IBM alphaWorks.


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


My developerWorks needs you!

Connect to your technical community