I'm a bit confused. You wrote your question as if you expect to be able to change the attributes of an element in the loaded page once you have submitted it. Of course that cannot be. Once you submit the page, the browser will replace the page with whatever is returned as the response.
You can, of course, send a copy of the same page. In this page you can easily embed some JSP EL expressions that set the value of the disabled attribute as appropriate.
Does that make sense? [ May 15, 2007: Message edited by: Bear Bibeault ]
I suppose that there are 2 submit button: the first is used to POST an HTML form which invoke the servlet in a blank page; the second is used to download the process results file when the servlet complete the processing.
I need to enable the 2nd button only when the servlet finished their work.
I tried with a servlet event listener but I don't know how to change the attribute of the 2nd button...
Maybe the only solution is AJAX but I anyone knows another method I will prefer this...