I have a ajax call in my javascript and its returning some response as json and redirecting the json values to another jsp page.. in the redirected jsp page, am getting the whole json in the url tab.. how to avoid that…
here is my ajax call in js file…
var cols="PRIORITY,USER_ID,PARTICIPANT_TYPE,CREATION_DATE,ASSIGN_TO_USER_DATE,START_WORK_DATE,DUE_DATE,OPERATION,ORDER_VK,SENDER_TYPE,SENDER_ID,ORDER_ID,FLAGS";
var ioArgs = {
url: "./DynamicDBServlet",
content: { TABLE_NAME:'CWPWORKLIST',WHERE_CONDN:cond,COLUMNS:cols},
handleAs: "json",
load: function(response) {
alert("new "+new String(response));
window.location.href = "worklist.jsp?PRIORITY="+response;
},
error: function(error) {
alert("An unexpected error occurred: " + error);
}
};
Replace this line:
with:
and then have the below function:
and read the values to worklist.jsp using the name PARAM……