At 11:58 AM 3/9/99 -0500, you wrote:
>Hi
>
>Is there any way of calling a servlet from an HTML form, but not creating a
>new page after the servlet has done what it has to do? I have a form that
>takes some info from the user and then i use a servlet to write to a file,
>but even if I don't put any reference to a response, after the form has
>been submitted I get a "document contains no data" alert. What I want to do
>is for the user to remain in the form page after the servlet has written
>the file, so he can use the form again if he wants to without having to use
>the back button.
>
You should be able to do a:
HttpServletResponse.setStatus(HttpServletResponse.SC_NO_CONTENT)
to advise the browser that you are not returning a response.
Bob
___________________________________________________________________________
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