Despite the limited success of the general attack the battalion lost nearly half its strength .
Despite the limited success of the general attack , the battalion lost nearly half of its strength .

Do these sentences mean the same thing?
yes