The return type of request.getParameter("value") is string. Do typecasting toconvert into double value.