I am using variable in the visualforce page to pass value to the controller but the value in the system.debug is displayed as null
Class
public void renderForms() {
String paramValue = ApexPages.currentPage().getParameters().get('renderFormValue');
system.debug('.........................'+paramValue);
}
Page
<apex:variable value="Search" var="renderVar"/>
<apex:commandButton value="Search" action="{!renderForms}">
<apex:param name="renderFormValue" value="{!renderVar}"/>
</apex:commandButton>