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.

Is multiple correspondance possible between client(html & JS)  and servlet ?

Thread view: 
Madni - 23 Nov 2005 06:35 GMT
Hi all,

This question might seem wiered to the "gurus" ... but the thing is I
am new to servlet programming and my servlet will perform different
task ... and it is necessary for client to aware of the current task
the servlet is performing at the moment ...now suppose in the middle of
the servlet execution ...it sends back some critical information to the
client ..then will it be possible for servlet to start from the point
where it discontinued ...If any one can give me some sugggestion over
this i will be highly obliged ...

Regards ,

Madni
zero - 23 Nov 2005 12:34 GMT
"Madni" <omermadni@gmail.com> wrote in news:1132727757.838559.6310
@g44g2000cwa.googlegroups.com:

> Hi all,
>
[quoted text clipped - 10 lines]
>
> Madni

A servlet gives data in response to a request from the client, it can't
send data on its own.  There is no open connection, so where would it send
this data?  Perhaps you could use a scheme like this:

1. client requests data
2. servlet starts calculations in a separate thread
3. servlet's original thread replies with a "please wait" page, which
includes scripting (javascript, vbscript, ...) that will reload the page
after n seconds
4. client reloads the page (ie, sends another request)
5. server checks if the separate thread is ready.  If so, send the data.  
If not, send the "please wait" page again, and we're back at 3.

Does that solve your problem?
Madni - 23 Nov 2005 12:40 GMT
Dear Zero,

Thanks a lot for your suggestion i am very hopefull this gonna solve
the problem ....thanks again .
zero - 23 Nov 2005 16:29 GMT
"Madni" <omermadni@gmail.com> wrote in news:1132749617.924212.10390
@g43g2000cwa.googlegroups.com:

> Dear Zero,
>
> Thanks a lot for your suggestion i am very hopefull this gonna solve
> the problem ....thanks again .

My pleasure :-)


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.