Problem with passing param with htmlCommandLink

Hi,

I have a question about using htmlCommandLink. In my application, I am using a htmlCommandLink and using a param to pass. However, the param always retuns a null value using one of those methods below :

String value = (String)resolveExpression("#{param['paramName']}");

or

 String value2 = (String)getFacesContext().getExternalContext().getRequestParameterMap().get("paramName");  

I don’t know why, even my param value is sending in the url request!!
do I have to set something in the scope ???

thanks and regards

Hi,

Did you try getting req. params as given below?

String reqParamValue = PortalServlet.getCurrentRequest().getParameter(“paramName”);

regards,
Raj