How to explain some anti-war poems?

1. Praise the just war of resisting aggression and safeguarding national unity, such as Jianghan and Changwu in The Scholars, Chu Che, June and Cai Ju in Xiaoya, etc. 2. Show the lofty patriotic spirit of the broad masses of the people in resisting the enemy, resisting humiliation and sharing weal and woe, such as Qin Feng.