The "#element" is syntax meaning there's a named element "element" on the
value stack; do the display tags interact with the S2 value stack?

I'd be more likely to try "${element.abc}" as I would have assumed that the
display tags did things with normal JEE contexts.

Just an idea.

Dave

--- red phoenix <[EMAIL PROTECTED]> wrote:

> I use Struts2 and displaytag, In testList,there is a abc attribute,it
> contains data like "english","france",when abc="english",I want to show
> En,else show Eu,my code is follows:
> 
> <display:table name="testList" id="element" size="6">
>   <display:column property="abc" title="def">
>     <s:if test=" #element.abc=='english' ">
>         En
>    </s:if>
>    <s:else>
>        Eu
>    </s:else>
> </display:column>
> 
> when I execute code,I find it only shows english or france,I don't know why
> it don't show En or Eu.Where wrong with my code?
> 
> Any idea will be appreciated!
> Thanks
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to