Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to prevent cross site scripting attack ?

 
Sathi Krishna
Ranch Hand
Posts: 51
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

In my web application we are unable to prevent the XSS(Cross Site Scripting) attack on web pages.
So provide me the better solution for this.

Thank You
SvKrishnaReddy
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64830
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you properly encoding untrusted text? The <c:out> JSTL tag is perfect for this.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic