: 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
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
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]
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
4 matches
Mail list logo