--- Mansour <[EMAIL PROTECTED]> wrote: > I am trying to iterate over a list and display rows > in different style: > > <s:iterator value="aList" status="stat" id="row"> > <s:set name="foo" value="${#stat.odd ? 'odd':'even'}" /> > <tr class="${foo}">
You're allowed to change my variable names. <s:set name="foo" value="%{#stat.odd ? 'odd':'even'}" /> <tr class="<s:property value='#foo'/>"> I think ${foo} will work, at least if you're on a JSP 2.0 container, but I can't test it at the moment. Can't think of any reason why it wouldn't, but the value for <s:set.../> needs to be in OGNL EL, not JSP EL. d. ____________________________________________________________________________________ Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more. http://mobile.yahoo.com/go?refer=1GNXIC --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]