Retrieving URL parameter

Hi,

How do i retrieve url parameters in JSR168 portlet.

Regards,
Marudeep

From java code:

Map requestParams = getFacesContext().getExternalContext().getRequestParameterMap()
Object value = requestParams.get("key");

Or from a binding expression:

#{facesContext.externalContext.requestParameterMap["key"]}