The Artima Developer Community
Sponsored Link

Java Buzz Forum
How to escape HTML Special characters in JSP and Java

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Javin Paul

Posts: 1090
Nickname: javinpaul
Registered: Jan, 2012

Javin Paul is Java Programmer working on Finance domain.
How to escape HTML Special characters in JSP and Java Posted: Oct 17, 2012 10:02 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Javin Paul.
Original Post: How to escape HTML Special characters in JSP and Java
Feed Title: Java67
Feed URL: http://www.java67.com/feeds/posts/default?alt=rss
Feed Description: Java and technology tutorials, tips, questions for all programmers.
Latest Java Buzz Posts
Latest Java Buzz Posts by Javin Paul
Latest Posts From Java67

Advertisement


Escaping HTML special characters in JSP or Java is common task for Java programmers. There are many ways to escape HTML meta characters in Java, some of them we have already seen in last article escaping XML meta characters in Java.  For those who are not familiar with HTML special characters, there are five e.g. < , >, &, ' and '' and if you want to print them literally just like here, Than you need to escape those character so < becomes &lt; , > becomes &gt; and so on. Of course you can write your own custom tag or method for converting HTML special characters to entity format which browser understand but you don't need to do this because there are more easy and standard way to escape HTML special characters in JSP and Java. In this JSP and Java tutorial we will learn about HTML special characters and explore some techniques to escape them in JSP pages and Java code. By the way this is also a popular JSP Interview question mostly asked to 2 years experience programmers.
Read more »

Read: How to escape HTML Special characters in JSP and Java

Topic: Bad developer - good boss Previous Topic   Next Topic Topic: Bad Things Happen to Good Code

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use