You need to sign in to do that
Don't have an account?
Hiding parameters in url of visual force page
kumaresan.m
I want to pass some parameters in url to another page with hidden way. so i tried using getheaders() instead of getparameters(). but this was not works. Please help me understand, how to do? i am pasting my code below:
controller of Page 1:
public PageReference wish() {
pagereference s=new pagereference('/apex/Aboutus');
s.getHeaders().put('id','1234');
return s;
}
Construtor of Page 2:
Public aboutus(){
string ss=ApexPages.currentPage().getheaders().get('id');
system.debug('mylog'+ss);
}
in debug log i am getting null during this action..
I want to pass some parameters in url to another page with hidden way. so i tried using getheaders() instead of getparameters(). but this was not works. Please help me understand, how to do? i am pasting my code below:
controller of Page 1:
public PageReference wish() {
pagereference s=new pagereference('/apex/Aboutus');
s.getHeaders().put('id','1234');
return s;
}
Construtor of Page 2:
Public aboutus(){
string ss=ApexPages.currentPage().getheaders().get('id');
system.debug('mylog'+ss);
}
in debug log i am getting null during this action..
One alternative is to just use the same controller for both pages, then you could maintain the parameters in memory.