Now if the user enters some invalid string(">) in the text box" /> Now if the user enters some invalid string(">) in the text box" /> Now if the user enters some invalid string(">) in the text box"/>

How to handle xss attack on search input field in jsp?

224 Views Asked by At

How to add c:out for input search box ?

<input type="text" name="search" id="search" />

Now if the user enters some invalid string(">) in the text box, the html renders it and impacting the UI

I tried adding, 
    <input type="text" name="search" value="<c:out value=""/>" id="search" />
but not working for input search boxes.

Please give me some suggestions Thanks

0

There are 0 best solutions below