PDA

View Full Version : Filters and Servlets in Java


sindhu_sharma
08-19-2005, 10:10 AM
Hi Geeks,
I need to implement a filter to prevent the user to enter something like <script>....</script> in the text-fields on my web-page and trying to hack my session etc...

Remember this has to be implemented at the server-side.

Quick replies will be very helpful...

Thanks in advance
SS

nikkiH
08-19-2005, 09:30 PM
Use replaceAll.
See here for another discussion (http://www.tivocommunity.com/tivo-vb/archive/index.php/t-229458.html) on how to do that.