When a variable is passed from java layer to JSP, if the string starts with 0(Zero), it is automatically converts it to Octal otherwise it is working fine.
Inside the Java code I am sending one distID
response.sendRedirect("ExpTool.jsp?test=1&&distID="+distID);
And inside the JSP code I am receiving the distID as
String distID=(String)request.getParameter("distID");
Its working fine except the scenario when distID is like '004352' i.e., when it starts with '0(zero)'. Whenever it starts with '0', it is automatically converted into its Octal Equivalent. I need solution for the scenario when distID starts with '0'.