passing data from success() method using session.setAttribute()
I using the $.ajax() method to call a java servlet. The call is successful and all data is being passed successfully from the servlet to the 'success()' method. As a next step, the success method brings up a 'results' web page with the following statement:
window
.
location
=
"results.jsp"
;
I would like to pass data to the 'results.jsp' page by setting one or more session attributes i
n the success method, but I cannot figure out how to do this. Can anyone describe how to do this or point me to a solution.
If an alternative to using session.setAttribute() is available, that could also be helpful.
Jim A.