Yitzchak Rabin yemach shemo asked Rabbi Ovadiah Yosef if he should use “diplomacy” or military action. Shut “Yabia Omer” (Part 10 C.M. 6) records a joint meeting consisting of Rabbi Elayashiv, Rabbi S.Z. Auerbach, Rabbi Betzalel Zolty, Rabbi B.Z. Abba Shaul, and others.
What was their ruling? Against.
אמנם ברור הדבר ששחרור המחבלים הנדרשים טומן בחובו סכנות רבות, אולם בהיות היהודים החטופים נתונים בסכנת נפשות ממש באופן מיידי…
Rabin went ahead, anyway, as we know.
Rabbi O.Y. then used the same twisted logic in permitting a bloody prisoner exchange for Gilad Shalit, as discussed by Rabbi bar Chaim here.
The Charedi history school textbooks all praise the operation, omitting this teeny-tiny detail of self-defeating, defeatist “Da’as Torah”.
As the Charedi establishment organs bleat: ברוך שמסר עולמו לשומרים
P.S., See here for Rabbi Chaim Greineman’s view.