dkim18
asked on
Displaying values in html:option tag dynamically
Hi Experts,
This apprently gives syntax error and it is the following line.(If I switch to any string, it works.)
value="<bean:write name="providerListData" property="prnme" />"
I need to display prnme and store prnme, so value attribute and inside of option should be the same. This is what I did.
from java code
...
...
if(session.getAttribute("p roviderLis t") != null)
session.removeAttribute("p roviderLis t");
...
...
from jsp file
++++++++++++++++++
<logic:present name="providerList">
<logic:iterate id="providerListData" name="providerList" >
<logic:present name="providerListData">
<html:option value="<bean:write name="providerListData" property="prnme" />">
<bean:write name="providerListData" property="prnme" />
</html:option>
</logic:present>
</logic:iterate>
</logic:present>
+++++++++++++++
What is wrong with this anyway?
thx
This apprently gives syntax error and it is the following line.(If I switch to any string, it works.)
value="<bean:write name="providerListData" property="prnme" />"
I need to display prnme and store prnme, so value attribute and inside of option should be the same. This is what I did.
from java code
...
...
if(session.getAttribute("p
session.removeAttribute("p
...
...
from jsp file
++++++++++++++++++
<logic:present name="providerList">
<logic:iterate id="providerListData" name="providerList" >
<logic:present name="providerListData">
<html:option value="<bean:write name="providerListData" property="prnme" />">
<bean:write name="providerListData" property="prnme" />
</html:option>
</logic:present>
</logic:iterate>
</logic:present>
+++++++++++++++
What is wrong with this anyway?
thx
ASKER
what is the difference? I already tried that.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
value="<bean:write name='providerListData' property='prnme' />"