A developer is writing a Visualforce page that uses a custom controller. The page needs to execute an action method as soon as the page loads, without requiring user interaction. Which attribute on <apex:page> should be used?
Correct because the action attribute invokes a controller method on page load.
Why this answer
The action attribute on <apex:page> executes a controller method when the page is requested.