There has been a small buzz on the internet regarding the conduct of Israeli combatants during the Gaza incursion. It is undisputed that it has been a longstanding practice for Palestinian combatants to elect to fight in heavily populated civilian areas in order to not only deter the Israeli forces, but to use civilian casualties to their political advantage.
This type of war was not considered in our sources, but the Rambam does speak eloquently about the mission of the soldier:
…he should put his life in his hands, and not be afraid. He should not think of his wife and family, but he should wipe out the memory of them from his heart, and focus everything on the battle before him. For anyone, who has second thoughts during battle and feels fear, transgresses a negative commandment, as it is written: Do not soften your hearts and do not be afraid… Not only this, but all of Israel is weighing on his neck. And if they do not win, and he has not fought with all his heart, it is as if he has spilled the blood of everyone… (Rambam Hilchot Melachim 7:15)
For a more complete rendering and a scorchin commentary, click here.