Integer num = Integer.parseInt( request.gerParameter("txtContador"), 10 ); o Integer num = ((Integer) request.gerParameter("txtContador"));