request.addParameter("testForm.__present", "true");
request.addParameter("testForm.date.myDateLo.date", sdf.format(new java.sql.Date(System.currentTimeMillis()-1000*60*60*24)));
request.addParameter("testForm.date.myDateHi.date", sdf.format(new java.util.Date()));
testForm.getElement("date").setConstraint(new RangeConstraint((FormElement)testForm.getGenericElementByFullName("date.myDateLo"),
(FormElement)testForm.getGenericElementByFullName("date.myDateHi"),
true)
);
StandardServletInputData input = new StandardServletInputData(request);