Whoops, I've managed to duplicate this post just above (the browser wasn't working last night so I gave up, seems it posted it anyway). I think you've misunderstood what I meant.
The user clicks on an item in the tree after scrolling down the page, the request goes to the servlet, the servlet adds the items from the database or whatever and redraws the page. The user then has to scroll down the page to see the results and then expands one of the items in the expanded list, the request goes to the servlet etc. I want to add a parameter to the servlet to tell it to jump to that newly expanded branch.
Does this make more sense?