JSP Pages Not Redirecting Request Correctly
Hi Guys,
I am facing very strange problem. I am working on a simple JSP website deployed on jBoss 4.2.3 GA from there I am submitting my 'Form' into another JSP page with some queryString, let say;
following executes on 'onclick' event of Submit button;
document.main.action = "jsp/getConnection.sjp?testType=" + testType + "&testStage=" + testStage;
alert ("Action : " + document.main.action);
document.main.submit();
Now when I execute above page I can see alert which is 100% correct which is as follows;
Action : jsp/getConnection.sjp?testType=Agent&testStage=1
As soon as it submit to the above page the URL add some extras variables on queryString which exist but I am not calling it in this flow;
http://localhost:8080/Utility/jsp/getConnection.sjp?testType=Agent&pingLevel=abc&route=xyz
I don't understand from where and why its adding above values 'pingLavel' and 'route' as they exist in another function from which I am executing an AJAX request but that is not called at all.
Let me know if you need more info;
Function from which I am Submitting the Request_
function processRequest()
{
var testType = 'Agent';
var testStage = 1;
// If it is a PING request then just call ping() function
if (testType == "echoSystem")
{
ping(); // Simply call the function
return;
}
// Now we know that user wants to test something
var queryString = "?testType=" + testType + "&testStage=" + (testStage+1);
document.main.action = "jsp/getConnectionPool.jsp" + queryString;
alert ("Action : " + document.main.action); <-- I can see the action as expected on this alert
document.getElementById("main").submit();
}
Next page URL comes as;
http://localhost:8080/Utility/jsp/getConnectionPool.jsp?testType=Agent&*pingLevel=Server&route=Direct_Connection&numOfReq=5*
I don't understand where its getting these (above BOLD) values from as these exist in the function 'ping()' which I am clearly not calling.
Your help and comments will be appreciated,
Thanks,
--
Sjunejo