This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes How to prevent cross site scripting attack ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "How to prevent cross site scripting attack ?" Watch "How to prevent cross site scripting attack ?" New topic
Author

How to prevent cross site scripting attack ?

Sathi Krishna
Ranch Hand

Joined: Oct 21, 2007
Posts: 51

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

Joined: Jan 10, 2002
Posts: 60774
    
  65

Are you properly encoding untrusted text? The <c:out> JSTL tag is perfect for this.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
 
subject: How to prevent cross site scripting attack ?
 
Similar Threads
How to prevent cross site cripting parameter manipulation attacks in jsp?
HTML escaping for XSS prevention
Avoid Cross site scripting in Jsp
Bug Interpreting HTML Tag in Java Bean using c:forEach
XSS attack - prevention - AJAX ?