i create a web form with JSP, and for preventing attacks I do the following:
input.replace("<", "something else");
input.replace(">", "something else");
so a user cannot add HTML or other tags inside a form.
Is this enough to prevent attacks of this kind(Insertions of HTML or other tags inside my website)??
Thanks you JH. G.