Reputation: 11
Hi I have a jsp page in which following lines
if(Exception err) {
out.println (err.getMessage() + "<br/><br/>");
}
may get XSS attacks i want to it just display the above things without any XSS attacks Any thought ?
Upvotes: 1
Views: 2607
Reputation: 35372
Apache Commons provides StringEscapeUtils, see the escapeHtml() method
Upvotes: 0