Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Selected Reading
I want to use <% literal in JSP page. But it is throwing error. How to escape this syntax in JSP?
You can escape it using backslash character. Replace
<html>
<head>
<title>A Comment Test</title>
</head>
<body>
<h2>Syntax: <\%= (new java.util.Date()).toLocaleString() %\></h2>
<p>Today's date: <%= (new java.util.Date()).toLocaleString()%></p>
</body>
</html> Advertisements
