public void setType(String type) throws ExpressionException {
	type = type.toLowerCase().trim();
	if (type.equals("exception")) {
	    errorPage.setType(ErrorPage.TYPE_EXCEPTION);
	}
	else if (type.equals("request")) {
	    errorPage.setType(ErrorPage.TYPE_REQUEST);
	}
	// else if(type.equals("validation")) this.type=VALIDATION;
	else throw new ExpressionException("invalid type [" + type + "] for tag error, use one of the following types [exception,request]");
    }
public void setType ( String type ) throws ExpressionException { type = type . toLowerCase ( ) . trim ( ) ; if ( type . equals ( "exception" ) ) { errorPage . setType ( ErrorPage . TYPE_EXCEPTION ) ; } else if ( type . equals ( "request" ) ) { errorPage . setType ( ErrorPage . TYPE_REQUEST ) ; } else throw new ExpressionException ( "invalid type [" + type + "] for tag error, use one of the following types [exception,request]" ) ; }
set the value type The type of error that the custom error page handles.

@param type value to set
@throws ExpressionException