You need to sign in to do that
Don't have an account?
NCEE_Andrew
URLs and Calling Class Functions
I'm trying to get a value from the URL and pass it to my Apex class. Here's the URL
URL: https://c.na4.visual.force.com/apex/email?comment_id=Comment-0000003
Here's some sudo code for what I want to do
Visualforce:
Apex Class:
I want the VisualForce page to envoke the URL function and send it the comment_id value from the URL. I know this doesn't work. Why doesn't it work and what do I need to do to get it to work.
URL: https://c.na4.visual.force.com/apex/email?comment_id=Comment-0000003
Here's some sudo code for what I want to do
Visualforce:
Code:
<apex:page ...>
... {!myClass.URL($Request.comment_id)} ...
</apex:page>
Apex Class:
Code:
public class myClass { private String comment_id = null; public void URL(String data) { this.comment_id = data; } }
I want the VisualForce page to envoke the URL function and send it the comment_id value from the URL. I know this doesn't work. Why doesn't it work and what do I need to do to get it to work.
http://www.salesforce.com/us/developer/docs/pages/Content/apex_methods_system_apexpages.htm?SearchType=Stem