You can declare it very easy. Eg:
and afterwards deploy it as:
Bear Bibeault wrote:I'll assume that this is in regards to a web UI as you posted it in the Servlets forum.
Or you could use a combination of Ajax & Server side processing using Java... here's a link to read up more ...