When was Sweden attacked by Denmark
The parties also committed to providing support when the other country was attacked by domestic or foreign enemies , which meant that Danish troops , for example , helped the Swedish king Gustav to suppress a peasant uprising ( the Dacke War ) the following years .