Try with
<s:if test="%{#parameters.login[0]=='failed'}">
The two problems were in your code:
- The
=
sign is an assignment, not equals==
; Parameters are saved in the
Map<String, String[]>
, so each parameter could have multiple values and accessed by the specifying an index.The last option also described here: why doesn't the
if
tag evaluate params properly.