struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrea M" <andrea.missin...@fastwebnet.it>
Subject R: <html:option> and <c:out> tags
Date Fri, 21 May 2004 05:38:51 GMT
Hi Padala
Why don't you use
<html-el:options collection="optionList " property="${optionList.optionID}"
labelProperty="${optionList.optionLabel}"/>

instead of manually cycling thru with  <c:forEach  ?

-----Messaggio originale-----
Da: PADALA, SANDHYA (SBCSI) [mailto:sp4835@sbc.com] 
Inviato: giovedì 20 maggio 2004 22.41
A: Struts Users Mailing List
Oggetto: RE: <html:option> and <c:out> tags

Thanks Tim, I could solve my issue with the el tags. Now I am using el
tags in other places, Life is easy now.

Sandhya

-----Original Message-----
From: Slattery, Tim - BLS [mailto:Slattery.Tim@bls.gov] 
Sent: Thursday, May 20, 2004 1:25 PM
To: 'Struts Users Mailing List'
Subject: RE: <html:option> and <c:out> tags


> 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}/>">

That's the problem right there, you *cannot* nest tags. So use the el
version of the tag:

<html-el:option value="${optionList.optionID}"/>


--
Tim Slattery
Slattery_T@bls.gov


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message