Short answer:
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:out value="${myString}"/>
there is another option:
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
${fn:escapeXml(myString)}
More Related Contents:
- What is the recommended way to escape HTML symbols in plain Java?
- How to escape apostrophe or quotes on a JSP (used by JavaScript)
- JSP – What is wrong with scriptlets, and what to use instead [duplicate]
- How to convert HTML to PDF using iText [duplicate]
- Set img src from Byte Array
- calling java method in javascript [closed]
- Java escape HTML
- Using for loop inside of a JSP
- How to URL encode a URL in JSP / JSTL?
- Avoid duplicate submission of Struts 2 jsp page
- difference between ionic and android sdk
- How can I upload files to a server using JSP/Servlet?
- How should I use servlets and Ajax?
- Java HTML Parsing [closed]
- Background timer task in JSP/Servlet web application [duplicate]
- Reading a JSP variable from JavaScript
- Unable to compile class for JSP: The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files
- How to escape the equals sign in properties files
- How do I escape a string in Java?
- Why does getRealPath() return null when deployed with a .war file? [duplicate]
- Escape double quotes in Java [duplicate]
- Passing parameters to action through ModelDriven in Struts 2
- Is it possible/how to embed and access HTML Files in a JAR?
- I can pass a variable from a JSP scriptlet to JSTL but not from JSTL to a JSP scriptlet without an error
- Managing webapp session data/controller flow for multiple tabs
- Using .html files as JSPs
- How to escape a square bracket for Pattern compilation?
- Text Extraction from HTML Java
- How can you escape the @ character in javadoc?
- Can not find the tag library descriptor for “http://java.sun.com/jsp/jstl/core”