You can use the
HttpServletResponse.sendRedirect("http://www.somewhere.com/yourfilewithform.
html");
where yourfilewithform.html is the file with the form.
-----Original Message-----
From: Hector Fabio Meza Martinez <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Tuesday, March 09, 1999 8:02 PM
Subject: servlet response
>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.
>
>thanks
>
>Hector
>
>___________________________________________________________________________
>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