What would be right EL expression in JSP to have a new line or HTML’s <br/>?
Here’s my code that doesn’t work and render with ‘\n’ in text.
<af:outputText value="#{msg.TCW_SELECT_PART_ANALYSIS}\n#{msg.TCW_SELECT_PART_ANALYSIS2}"/>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Since you want to output
<br />, just do:The attribute
escape="false"is there to avoid the<br />being HTML-escaped.You can even display the two messages in separate tags and put the
<br />in plain text between them.If you’re still on JSF 1.1 or older, then you need to wrap plain HTML in
<f:verbatim>like: