* provides methods for creating an instance of a report
* from the parameters in the request.
*/
public class reportfactory
{
public static final dateformat format =
new simpledateformat( "yyyy.mm.dd" );
public static report newinstance( servletrequest request )throws jspexception
{
string reporttype = getparameter( request, reportparameter.type );
report report = null;
// for brevity, only the simple report type is shown here
if ( reporttype.equals( reporttype.banked_time_simple ) )
{
report = newsimplebankedtimereport( request );