Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2005

Tip: Looking for answers? Try searching our database.

Reading response from the servlet

Thread view: 
Madni - 14 Nov 2005 10:32 GMT
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
Tjerk Wolterink - 14 Nov 2005 12:07 GMT
> 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
[quoted text clipped - 5 lines]
>
> 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.
Madni - 15 Nov 2005 07:53 GMT
Dear Tjerk ,

Thanks a lot for your suggestion ...I used it and it works very well .

Best Regards,
Madni


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.