title: How to pass and get URL parameters in IBM Webpshere Portal 6.1 JSF Portlets?
body: <p>I have a simple HTML page which contains a form (uses GET method), whose action is a portal page containing a JSF portlet. <strong>I need to access the parameters passed in to the portal page in my portlet - how can I achieve this?</strong></p>
  
  <p>I have tried to access the parameter <code>code</code> on the view page using following code but the value comes up as <code>null</code>.</p>
  
  <pre><code>java.util.Map requestMap = javax.faces.context.FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap(); 
  String code = requestMap.get("code");
  </code></pre>
  
  <p>At some other forum it was suggested that I need to pass the the portlet id as request parameter in order to have the portlet access to passed request parameters. If that is true where/how can I lookup my portlet ID so that portlet has access to request parameters?</p>