You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Steltner, Joern" <st...@gmx.de> on 2004/03/19 13:28:05 UTC

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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org