Dave,
I would repair and/or replace the compartment latches or striker plates instead of replacing the struts. Replacing the struts will not be a long-term repair. If the compartments open from road vibration, they will probably still open from the pressure of the weather-strips as you travel even with weaker struts.
Gerald