Entity « HTML « JSP-Servlet Q&A

1. htmlentities equivalent in JSP?    stackoverflow.com

I'm a php guy, but I have to do some small project in JSP. I'm wondering if there's an equivalent to htmlentities function (of php) in JSP. Thanks for your time. Best regards.

2. Escape HTML entities in JSP / JSPX: no solution for problem that should not even exist?    stackoverflow.com

We use jspx as template engine. We have dozen of screens with hundreds of el expressions like ${user.firstName} or "${mail.subject}" And all this HTML code is not escaped by default. If there ...