during the second day of the battle of gettysburg (july 2, 1863) confederate gen. robert e. lee attempted to capitalize on his first day's success. his army of northern virginia launched multiple attacks on the flanks of the union army of the potomac, commanded by maj. gen. george g. meade. the assaults were unsuccessful, and resulted in heavy casualties for both sides.