A long war with a hight number of casualties usually generates a negative opinion of the goverment in the country, specially if entering the war was a goverment's initiative.
An example would be the great opposition of the US society against its goverment due to the participation of the US in the long Vietnam War, as many US soldiers died in a conflict that was considered external.