Depends on the situation.
Self defense, open area: longsword
Self defense, closed-in area: dagger
Battle, open area: halberd
Battle, closed area: spear
Of course, a quarterstaff will also prove it's worth in these situations, though it's not idealized for any one of them.