Hmm..Your syntax looks right to me, though you are missing a closing > just before </html:option>
Could the problem lie elsewhere? Can you write out the accounts.number/account.no_account label/value as a simple list? Colm -----Original Message----- From: Steltner, Joern [mailto:[EMAIL PROTECTED] Sent: 19 March 2004 12:28 To: [EMAIL PROTECTED] Subject: access variable value in html tag Dear, I'm not an expert in Struts and Java. I need some simple help: <html:select property="no_account"> <c:forEach var="accounts" items="${Accounts}" varStatus="status"> <html:option value="????????"><c:out value="${accounts.number}"</html:option> </c:forEach> </html:select> Everything works fine, but at ??????? mark I would like take account.no_account like ${accounts.number}, but it doesn't work. May someone can give me a small note about the right syntax to get the value from accounts.number as text in the quotes. Thanks Regards J. Steltner --------------------------------------------------------------------- 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]

