RE: access variable value in html tag

2004-03-26 Thread Steltner, Joern
: access variable value in html tag The Struts-EL is what I'd recommend, which supports exactly what you want to do, unless you're into (Tomcat 5 and the) JSP 2.0 then you'd just do: option value=${accounts.number}${accounts.number}/option Otherwise I _think_ I've done this nastiness and it worked

RE: access variable value in html tag

2004-03-23 Thread Brian Buchanan
The Struts-EL is what I'd recommend, which supports exactly what you want to do, unless you're into (Tomcat 5 and the) JSP 2.0 then you'd just do: option value=${accounts.number}${accounts.number}/option Otherwise I _think_ I've done this nastiness and it worked, but I might have been doing it

RE: access variable value in html tag

2004-03-19 Thread Colm Garvey
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]

RE: access variable value in html tag

2004-03-19 Thread Robert Taylor
You will need to use Struts-EL taglib then you should be able to do what you want. http://jakarta.apache.org/struts/faqs/struts-el.html html:select property=no_account c:forEach var=accounts items=${Accounts} varStatus=status html_el:option value=${account.no_account} c:out