In my web application I want to send some text back in the
addActionError("User not logged in. <a href=\"logon\">Click Here</a> to log in");
The problem is the html text appears as normal text and does not appear as a link to click on.
Set the escape="false"
attribute on the <s:actionerror>
tag; it defaults to true
:
<s:actionerror escape="false"/>
See the <s:actionerror>
docs for more details. Roughly:
escape default=false required=false type=Boolean ==> Whether to escape HTML
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With