I am working on a project where am getting an error of Cross Site Scripting.. In a JSP file there is a code line below
var selSubArea = document.adminForm.subjAreaId.options[document.adminForm.subjAreaId.selectedIndex].text;
Anyone having idea how to resolve it. Any help will be appreciated. Thanks in Advance
I have already tried to use different Encoding techniques but not working... for eg. Encode.forHtml, Encode.forJavascript, COV Security, fn EscapeXML.....
var selRole = document.adminForm.appnRoleId.options[document.adminForm.appnRoleId.selectedIndex].text;
var selSubArea = document.adminForm.subjAreaId.options[document.adminForm.subjAreaId.selectedIndex].text;
var selRoleID = document.adminForm.appnRoleId.options[document.adminForm.appnRoleId.selectedIndex].value;
var selSubAreaID = document.adminForm.subjAreaId.options[document.adminForm.subjAreaId.selectedIndex].value;
I am getting this Cross Site scripting issue with only texts Inputs.. and these are actually Dropdowns..