struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geddes, Mark (ANTS)" <>
Subject RE: Set html:option value with bean:write
Date Mon, 02 Jul 2001 08:05:16 GMT

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"


-----Original Message-----
From: Pham Thanh Quan []
Sent: 02 July 2001 09:04
Subject: Set html:option value with bean:write

Hi all,

i want to set the value of html:option to the corresponding 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'/>

Please help !


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

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

View raw message