can we do dynamic getProperty name in jsp?
hi,
I have code like this..
<jsp:getProperty name="emp" property="NAME"/>
<jsp:getProperty name="emp" property="ADDRESS"/>
<jsp:getProperty name="emp" property="SALARY"/>
etc. Where NAME,ADDRESS,SALARY are the column names of my table. Is it possible to write this code dynamically? like i have taken names of columns, now how to write the property=""?
I have tried like this
<jsp:getProperty name="emp" property="<%=labels[k]%>"
but it is giving error.
please help me....
|