How to fetch data from Controller and display it in Visualforce page?
Sample code: Visualforce page: <apex:page sidebar="false" controller="Sample"> <apex:form > <apex:pageblock id="account" title="Account Details(Standard Object)" > <apex:pageblockTable value="{!acc}" var="a"> <apex:column value="{!a.Name}"/> <apex:column value="{!a.AccountNumber}"/> </apex:pageblockTable> <apex:pageblockButtons > <apex:commandButton value="Fetch Account" action="{!fetchAccount}" reRender="account"/> ....