31.4. Writing a servlet accessing a bean

You must write in your servlet code the same code you would write in a simple Java application:

An example of Java servlet can be found in the websample example.