Re: stop

2000-05-01 Thread David Du

Hi, thank you very much, I am using HTML-servlet.

David

-Original Message-
From: Bo Xu [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 01, 2000 12:41 PM
To: [EMAIL PROTECTED]
Subject: Re: stop


Hi David,

I met the same problem, and now I just know :-):

1.
I think "one HTTP transaction" includes "request+response", if your servlet
doesn't "response anything:-)", the browser will "when ever you go, what
ever
you do, I will be right here waiting for you:-) :-)"

2. if you use "applet -servlet",  I suggest you "look:-)" the following
lines:

...
URL url=new URL("http://IPAddr:port/servlet/myservlet");
URLConnection urlc=url.openConnection();
urlc.connect();  //so the "response of your servlet has been "received by
"urlc"

URL url2=new URL("http://...");  //   >...load another page immediately
after
the servlet starts..."
getAppletContext().showDocument(url2);
...

I test the above in:
a. winnt40+IE5
b.winnt40+Netscape4.7
c. solaris7+hotjava1.0.2
(WEB Server is : solaris7+Javca WEB Server2.0)

3.
if you use "HTML-servlet", I don't know how to do it:-)



Bo
May 01,2000



Kevin Mukhar wrote:

> David Du wrote:
> >
> > Thanks
> > Hi, I am running a problem with servlet, I have a servlet which get data
> > from one backend database and send the data to another database, this
> > process is done when users browser our website. My issue is that I don't
> > have any data sent back to the browser displayed on a page, but the
server
> > is trying to send back an empty white page, so the It is running the
busy
> > cusor all the time until the servlet process is done, actually we need
to
> > load another page immediately after the servlet starts, so the white
page
> > comes after the other page, I want to write codes(javascript, html, or
> > others) to similate clicking the stop button on the browser toolbar like
> > window.stop(), but this only works for Netscape, not for IE5.01, would
you
> > guys please help me with this issue ?
> > Thank you very much in advance !
>
> In my opinion, you should always send some response back to the user. That
is
> the model of HTTP transactions: there is a request AND a response. You
don't
> need anything fancy, a simple page that says "Thanks for your submission"
is
> good enough, as long as the user gets some indication that their action
was
> accepted.
>
> K Mukhar
>
>
___
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



stop

2000-04-28 Thread David Du

Thanks
Hi, I am running a problem with servlet, I have a servlet which get data
from one backend database and send the data to another database, this
process is done when users browser our website. My issue is that I don't
have any data sent back to the browser displayed on a page, but the server
is trying to send back an empty white page, so the It is running the busy
cusor all the time until the servlet process is done, actually we need to
load another page immediately after the servlet starts, so the white page
comes after the other page, I want to write codes(javascript, html, or
others) to similate clicking the stop button on the browser toolbar like
window.stop(), but this only works for Netscape, not for IE5.01, would you
guys please help me with this issue ?
Thank you very much in advance !

David Du

>___
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>___
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: stop

2000-04-28 Thread David Du

Hi, I called res.setStatus(HttpServletResponse.SC_NO_CONTENT) before db
process, but still a white page coming back. do you have more idea?

David

-Original Message-
From: Paul King [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 27, 2000 12:14 PM
To: [EMAIL PROTECTED]
Subject: Re: stop


David:

Could you have your servlet return a status code of 204 (No Content)
immediately before the database operations?

Regards,
Paul King

-Original Message-
From: David Du <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Thursday, April 27, 2000 10:34 AM
Subject: stop


>Hi, have I sent through this message ?
>
>Thanks
>
>Hi, I am running a problem with servlet, I have a servlet which get data
>from one backend database and send the data to another database, this
>process is done when users browser our website. My issue is that I don't
>have any data sent back to the browser displayed on a page, but the server
>is trying to send back an empty white page, so the It is running the busy
>cusor all the time until the servlet process is done, actually we need to
>load another page immediately after the servlet starts, so the white page
>comes after the other page, I want to write codes(javascript, html, or
>others) to similate clicking the stop button on the browser toolbar like
>window.stop(), but this only works for Netscape, not for IE5.01, would you
>guys please help me with this issue ?
>
>Thank you very much in advance !
>
>
>David Du
>
>___
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>___
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Re: stop

2000-04-28 Thread David Du

HI, thanks for response, the another page I can't control because It is from
Interworld .tem file, it is not from my java code, but can I write another
thread in the servlet to do the db work and I still do not need any page
back ?

Thanks in advance.

David

-Original Message-
From: sven [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 28, 2000 7:18 AM
To: [EMAIL PROTECTED]
Subject: Re: stop


David,
> actually we need to
> load another page immediately after the servlet starts, so the white page
> comes after the other page,
Couldn't you write a Thread that does the work for you ? You spawn the
thread, and send the page you want to send. IMHO, you shouldn't let your
servlet do a lot of db work. You spawn the thread and send the page you
want. You won't even get the blank page.

sven
--

---
Sven E. van 't VeerAfiliado
Universo Online
Gerente Desenvolvimento
Brasil Informática e Telecomunicações Ltda.
http://www.brvip.com.br
http://www.uol.com.br

---

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



stop

2000-04-27 Thread David Du

Hi, have I sent through this message ?

Thanks

Hi, I am running a problem with servlet, I have a servlet which get data
from one backend database and send the data to another database, this
process is done when users browser our website. My issue is that I don't
have any data sent back to the browser displayed on a page, but the server
is trying to send back an empty white page, so the It is running the busy
cusor all the time until the servlet process is done, actually we need to
load another page immediately after the servlet starts, so the white page
comes after the other page, I want to write codes(javascript, html, or
others) to similate clicking the stop button on the browser toolbar like
window.stop(), but this only works for Netscape, not for IE5.01, would you
guys please help me with this issue ?

Thank you very much in advance !


David Du

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



stop

2000-04-27 Thread David Du

Hi, I am running a problem with servlet, I have a servlet which get data
from one backend database and send the data to another database, this
process is done when users browser our website. My issue is that I don't
have any data sent back to the browser displayed on a page, but the server
is trying to send back an empty white page, so the It is running the busy
cusor all the time until the servlet process is done, actually we need to
load another page immediately after the servlet starts, so the white page
comes after the other page, I want to write codes(javascript, html, or
others) to similate clicking the stop button on the browser toolbar like
window.stop(), but this only works for Netscape, not for IE5.01, would you
guys please help me with this issue ?

Thank you very much in advance !


David Du

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html