Am using JSF 1.2. I want to display a message to User which reads like this
"Please click here to login with your new password."
Code in my xhtml page,
<h:outputFormat value="#{msg.resetBackToLogin}" escape="false"></h:outputFormat>
And below is the code from my Property file.
Please <a href="http://myDomain/">
click here </a>
to login with your new password.
Since, it contains special characters, am using h:outputFormat
with escape=false
. I felt, using h:commandLink
and calling a bean method and redirecting there will simply add overhead.
As am using h:outputFormat
with escape=false
, this will lead to XSS attack. How can I prevent this if am sticking to h:outputFormat
?