You need to evaluate paramName
first before using it to get value from the bean.
Use square brackets for that:
<s:property value="beanName[paramName]" />
OGNL firstly gets value of paramName
and then gets value from beanName
with this resolved variable.