Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Sanitizing user input.

807569Jul 7 2006 — edited Jul 12 2006
Does anyone have any ideas for sanitizing user input in the Servlet/JSP world without doing it on a field by field basis?

We have a fully developed webapp that does no user input sanitizing and I would like to implement it somehow without ding it for every input field in every form.

We essentially need to be able to escape HTML entities to avoid cross site scripting attacks.

I thought of using a filter but don't know how it would intercept the request and modify the request parameters before hitting already existing code.

Any ideas?
Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 9 2006
Added on Jul 7 2006
2 comments
574 views