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');


Cheers!!!

No comments:

Post a Comment