To send parameters from one visualforce page to another

To send parameters from one visualforce page to another

The below code is used to send parameters from one visualforce page to another visualforce page.


Visualforce:

<apex:outputlink value = “/apex/sample”>
  <apex:param name = “msg” value = “hi”/>
</apex:outputlink>


Apex:

public String message = System.CurrentPagereference().getParameters().get(‘msg’);

Leave a Reply