Time-dependent and time-independent wavepacket approaches to reactive scattering and photodissociation dynamics