Linking star formation and environment in the A901/902 supercluster