Wie kann ich testen, ob eine bestimmte Aktionsnachricht im Kontext vorhanden ist?Struts2 - spezifische Informationsrückmeldung senden
<logic:messagesPresent message="error" property="my_error">
<table>
<tr>
<td>
<html:messages id="error" property="my_error">
<bean:write name="error"/><br>
</html:messages>
</td>
</tr>
</table>
</logic:messagesPresent>
Ich habe dies versucht, aber ich muss nur my_error Nachricht suchen.
<s:if test="hasActionMessages()">
<table>
<tr>
<td >
<s:actionmessage/>
</td>
</tr>
</table>
</s:if>
Mögliche Duplikat [Struts2 Äquivalent - actionError.get() .hasNext()] (http://stackoverflow.com/questions/42905050/struts2-equivalent-actionerror-get-hasnext) –