if (validator_ == null ) setup( resolver );
// reset the session state if requested
if ( request.getParameter("reset") != null) session.removeAttribute( formName_ );
Form form = (Form) session.getAttribute( formName_ );
if (form == null)
{
// first time here, populate the bean with initial values
form = new Form();
form.setInstance( new TestBean() );
session.setAttribute( formName_, form );
}
TestBean jBean = (TestBean) form.getInstance();
// call prepare in case the bean needs to massaged before population
prepare( jBean );
// update the bean with request parameter values