Have you tried this syntax:

<html:options collection="statusLookup" property="name"
labelProperty="value"/>

statusLookup is my Collection (in request scope), each element has getName()
and getValue() methods...

you're not going to be able to accomplish this by nesting jsp tags, as that
is 'illegal'...

--
Voytek Jarnot
Quidquid latine dictum sit, altum viditur.


> -----Original Message-----
> From: Jason Vinson [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 24, 2003 10:37 AM
> To: Struts Users Mailing List
> Subject: bean:write issues... or a better solution
> 
> 
> Hi folks,
> 
> 
> I am using a container class (a collection referenced by 
> queuesName) to hold data for populating a select list, and I 
> can't access the internal strings with the getter and setter 
> methods i have written.  I have included code and can 
> elaborate if needed.  Can anyone tell me what I am 
> overlooking... or should i try it with an Iterator tag instead?
> 
> TIA,
> Jason
> 
> [jsp]
> <html:select name="spgQueuesForm" property="queueSelected" 
> size="1" styleClass="fBdr-main">
>     <html:options property="queuesName" value=<bean:write 
> name="spgQueuesForm" property="objid"/>>
> </html:select>
> [/jsp]
> 
> [stack trace]
> Mon Feb 24 11:29:00 EST 2003:<E> <WebAppServletContext-spg> 
> Root cause of ServletException
> javax.servlet.jsp.JspException: No getter method for property 
> objid of bean spgQueuesForm
> [/stack trace]
> 
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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

Reply via email to