Here are two example servlets showing how to validate forms with FormEncode.
FormEncodeExample - an example included with FormEncode itself, using actions
FormExample1 - similar, but without using actions
FormExample2 - similar, but Schema defined in the form template