Madni wrote:
> I am developing a servlet that will upload the file on a server and
> respond the client with the success/failure message .The HTMl page that
> the client wil use to browse and sumbit the file to the server, i want
> it there remained open and a display of message box (using javascript)
> showing success/failure message .how can i use httpservletresponse
> method to return string to the client that could be used for the
> display of message box .
>
> Thanks
>
I do not think there is an easy way of doing this,
with AJAX you can send a xml request and read the response,
but you can't send a file with ajax.
So better is to just submit the pagina and return with a html page
that has a javascript in it that pop-ups a message.
|