struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geddes, Mark (ANTS)" <mark.ged...@ants.co.uk>
Subject RE: Set html:option value with bean:write
Date Mon, 02 Jul 2001 08:07:27 GMT
I meant <html:select property="currency.id">

-----Original Message-----
From: Geddes, Mark (ANTS) [mailto:mark.geddes@ants.co.uk]
Sent: 02 July 2001 09:05
To: 'struts-user@jakarta.apache.org'
Subject: RE: Set html:option value with bean:write



Assuming your form is already associated with 'merchantForm' FormBean, and
that 'currencyList' is a Collection, try:

<html:select property="currency">
	<html:options collection="currencyList" property="id"
labelProperty="id"/>
</html:select>

Mark

-----Original Message-----
From: Pham Thanh Quan [mailto:quanpt@sdcgrp.com]
Sent: 02 July 2001 09:04
To: struts-user@jakarta.apache.org
Subject: Set html:option value with bean:write


Hi all,

i want to set the value of html:option to the corresponding currency.id as
in the following (broken) jsp segment

<html:select size="1" property="currency" value="<bean:write
name='merchantForm' property='currency'/>">
    <logic:iterate id="currency" name="currencyList">
        <html:option value="<bean:write name='currency'
property='id'/>"><bean:write name='currency' property='id'/>
        </html:option>
   </logic:iterate>
</html:select>

Please help !

Quan



***************************************************************************
This email message contains confidential information for the above addressee
only.  If you are not the intended addressee you must not disclose or use
the information in any manner whatsoever.

Any opinion or views contained in this email message are those of the
sender, do not represent those of the Company in any way and reliance should
not be placed upon its contents.

Unless otherwise stated this email message is not intended to be
contractually binding.  Where an Agreement exists between our respective
companies and there is conflict between the contents of this email message
and the Agreement then the terms of that Agreement shall prevail.

Abbey National Treasury Services plc. Registered in England. Registered
Office:  Abbey House, Baker Street, London NW1 6XL.  Company Registration
No: 2338548.  Regulated by the SFA
***************************************************************************



***************************************************************************
This email message contains confidential information for the above addressee only.  If you
are not the intended addressee you must not disclose or use the information in any manner
whatsoever.

Any opinion or views contained in this email message are those of the sender, do not represent
those of the Company in any way and reliance should not be placed upon its contents.

Unless otherwise stated this email message is not intended to be contractually binding.  Where
an Agreement exists between our respective companies and there is conflict between the contents
of this email message and the Agreement then the terms of that Agreement shall prevail.

Abbey National Treasury Services plc. Registered in England. Registered Office:  Abbey House,
Baker Street, London NW1 6XL.  Company Registration No: 2338548.  Regulated by the SFA
***************************************************************************

Mime
View raw message