20 Aug 2002 mglazer   » (Journeyer)

Complete Java Bean; Hello World:


package com.taglib.wdjsp.fundamentals;
public class HelloBean implements java.io.Serializable {
  String name;

public HelloBean () { this.name = "World"; } public String getName () { return name; } public void setName (String name) { this.name = name; } }


<jsp:useBean id="hello" class="com.taglib.wdjsp.fundamentals.HelloBean"/>
<jsp:setProperty name="hello" property="name" param="name"/>
Hello, <jsp:getProperty name="hello" property="name"/>!

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!