I'm building a select from a java Resultset for a given userID.

Where the value for the options are a recordD for each record in the

On loading of the page, it gets a userID and recordD from session.
If recordD=null then it uses the first record from the Resultset.

So the select contains all records for a given userID and the page is
populated from data asscoiated to a recordD.

The user can repopulate the page by making a selection.
I makes an AJAX to a sevrlet that reset the session attribute for the

So that when the callback() is called it triggers the page reload.

It seems trivial but it is as if the callback() is triggered before
the session is written.

I have a session and request dumper upon writing the page and I'm not
seeing the session modified.

I know the the url parameters are being built because I have an alert
to display them.

      $('#select_note').change(function() {
        // Get the index of the selected item
        INDEX = $("#select_note option").index($("#select_note
option:selected")) +1;
        RID = $("#select_note option:selected").val();
        document.getElementById("rid").value= RID;
        document.getElementById("current_note").innerHTML = INDEX;
        var parameters = 'rid='+ RID + '&state=<
        var url = "<%=context%>/secure/Submit";
        var GO2TAB = function (url, parameters) {
                http_request = false;
                if (window.HttpRequest) { // Mozilla, Safari,...
                   http_request = new HttpRequest();
                   if (http_request.overrideMimeType) {
                } else if (window.ActiveXObject) { // IE
                   try {
                      http_request = new ActiveXObject("Msxml2.HTTP");
                   } catch (e) {
                      try {
                         http_request = new
                      } catch (e) {}
                if (!http_request) {
                   alert('Cannot create XMLHTTP instance');
                   return false;
                http_request.onreadystatechange =
                http_request.open('POST', url + parameters, true);

Reply via email to