Well, its okay for Imams and Christian Priests to give spiritual guidance to the soldiers on the battlefield, I don't see why Rabbis can't. Actually, I'm quite surprised it took this long for Israel to accept Rabbis into the Army.