Preventing Cross Site Scripting

Q

Qaurk Noble

Hello

Can anyone help?

I am new to java and have picked up a JSP project to ensure that non of
user's captured data can be parsed by a browser and that they are relatevely
free of code injections before storing them to a persistent storage.

In ASP I could easily do this by using Server.HTMLEncode() method.
How do I do the equilalent in JSP? Or putting it a differnt way, how can I
html encode as well as decode a piece of data in JSP?

Thanks in advance
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,765
Messages
2,569,568
Members
45,042
Latest member
icassiem

Latest Threads

Top