Fixed bug where betId was null in request.getparameter