Re: Struts 2 s:if tag

2009-10-08 Thread dcabasson
Hi Roger, I usually use s:if test=%{typ...@com.mypackage@MY_ENUM_VALUE} Denis. RogerV wrote: Gregor Marinšek wrote: You don't have to use value, because s:iterator puts the value on the top of ValueStack. What about: s:if test=%{type=='ENUM'} I assume you are iterating over

[Struts 2.1]Does an alias result exist in struts 2?

2009-07-13 Thread dcabasson
Hi all, I am wondering if there is an alias result in struts 2. The use case for such a result type would be for when some of the results are the same. Say SUCCESS and INPUT actually go both to the same location, it would be nice to be able to define SUCCESS and have INPUT be only an alias of

[Struts 2.1] Using a s:select with type conversion

2009-07-13 Thread dcabasson
Hi, I have trouble understanding the way TypeConversion along a s:select tag. Any advice on the matter would be welcomed. I have posted the bug under https://issues.apache.org/struts/browse/WW-3184 attaching a simple Use Case showing what I find to be an unexpected behaviour. Thanks for your