Hello ,
    I have a question on how to use <C:out> tag as the value to the
value attribute of <html:option> tag

On my JSP

<html:select property="optionList">
        <c:forEach items="${TaskForm.optionList}" var="optionList">
   
   
   <html:option value="<c:out value=${optionList.optionID}/>"><c:out
value="${optionList.optionName}"/></html:option>
   
</c:forEach>
     </html:select> 

When I run this JSp and do a view source
I get the following code

<select name="actionList"><option value="<c:out
value=${optionList.optionID}/>">abc</option>
   

   
   
   <option value="<c:out value=${optionList.optionID}/>">xyz</option>
   

   
   
   <option value="<c:out
value=${optionList.optionID}/>">pqr</option></select>   

Can anyone of you tell me how can I get the c:out get evaluated and the
value to be stored in the value attribute of option tag.


Thanks in advance.
Sandhya

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to