how to pass shell controle values to another portlet


i have the drop down in the shellheadder which contains different “endpoint addresses” as options.

in the search result page i am pointing that preference with current page preference but the value is not getting mapped to the local preference variable.

if i put the same dropdown as portlet in the page by editing the page then it is passing successfully.

please guide me to pass the dropdown value from Shellhedder to search result portlet


You can use the below code and set the user session values.

PortalServlet.getCurrentRequest().getSession().setAttribute(key, value);

If there is any change in teh value of the dropdown, then you need to set that value in the session and refresh the whole screen.