4

In a page controller, I can get hold of values that was passed to the page via GET (the URL query string parameters) like this:

String theId = ApexPages.currentPage().getParameters().get('id');

How do I get hold of values that was passed to the page via POST?

5

Looks like you should also just be able to get the post parameters with the getParameters function.

http://boards.developerforce.com/t5/Visualforce-Development/Re-Get-POST-data-via-visualforce-page/td-p/104987

1
  • Good find! Thank you very much. Just to add for others: I didn't experience the "true url" problem that is mentioned in the referenced article – JannieT Nov 27 '12 at 12:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.