syncronizing java & jsp