did the United States go to war in order to take territory it wanted from Mexico?

Was the war with Mexico justified? Or did the United States go to war in order to take territory it wanted from Mexico?

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"