Yes the Westpac answer is correct.
I have on a few occassions bought 1 day before ex-dividend date and received the dividend.
But make note: Advise the registry of you TFN asap, if your broker doesnt do it automatically (most do if you are Chess sponsored with them).