Link to home
Start Free TrialLog in
Avatar of dkim18
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("providerList") != null)
                    session.removeAttribute("providerList");
...
...

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
Avatar of Siva Prasanna Kumar
Siva Prasanna Kumar
Flag of India image

try this

value="<bean:write name='providerListData' property='prnme' />"
Avatar of dkim18
dkim18

ASKER

what is the difference? I already tried that.
ASKER CERTIFIED SOLUTION
Avatar of Siva Prasanna Kumar
Siva Prasanna Kumar
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial