- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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 <% with <\%. Following example showcases the same.
<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>
- Related Articles
- I Want Something in a Cage
- I want to use %> literal in JSP page. But it is throwing error. How to escape this syntax in JSP?
- I want to limit SAP user access to Transaction Code- SOST.
- I want to teach in a school, without doing B.Ed. Will I be recruited?
- I want to resize and position a JFrame in Java. How can I achieve that?
- I want to use 'Multani Mitti' for my skin. Are there any natural beauty packs for the same that I can make at home?
- I want to call JButton doClick() method to simulate a click action in Java
- I want to round a number to 2 decimal places in SAPUI5. Could anyone help?
- I don’t want configuration information to be transferred with the database in SAP ABAP
- I want to highlight all the text in the Java Swing Control Text Pane
- When to use i++ or ++i in C++?
- I want to return the next node after this node in a JTree with Java
- You want to show that $∆ART ≅ ∆PEN$,$(a)$ If you have to use SSS criterion
- I want to create a custom tag in JSP. How to write a custom tag in JSP?
- Selenium WebDriver: I want to overwrite value in field instead of appending to it with sendKeys using Java

Advertisements