IE and Netscape behave differently with this header
(not to reload the content from the server).
If I remember correctly,
With IE, you can use HttpServletResponse.SC_NOT_MODIFIED.
With Netscape, only SC_NO_CONTENT works, but only to some
extend.

Hope this helps.

Qiao Jin wrote:

> Has anyone used the two HTTP status code successfully from a servlet?
>
> Being called from an HTML form, my testing servlet's doGet routine simply
> sets the status code via:
>
>     response.setStatus (response.SC_NO_CONTENT) ;
>
> and returns.
>
> The browser (IE 5.5 or Netscape 6) keeps trying to load a new page for a
> long time, (the progress bar moves slowly or stalls,) until I press the
> "refresh" button, although the previous content is kept unchanged as it is
> supposed to.
>
> With SC_RESET_CONTENT, the whole page is wiped out, while it should have
> just reset the form.
>
> Any suggestions? Thank you for your help.
> Qiao
>
> ___________________________________________________________________________
> 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

Reply via email to