A convenient way of gathering form data is simply to mail the form results to a mailbox. Resin supports sending mail with it's Virtual File System.
Using a Java bean to create a simple hit counter