I am trying to do something similar.  I have a servlet that prints all
of the domains cookies out to the browser in HTML that includes a POST
form for addding a cookie or deleting a cookie.  The problem is that I
can't get the servlet page to refresh itself and show the newly added
cookie immediately after the post without having to manually reload the
page.

I think it could be a "Pragma", "no-cache" thing, or mabye there is a
problem with the fact that my POST form targets the servlet itself.  In
other words the servlet calls itself to update the HTML.  This should be
simple, but I am still a beginner with servlets.  Any help would be
appreciated.

Thanks,
Jon

David Wall wrote:
>
> >I suppose when you first call page A, all the INPUT-tags are empty.
> >Why don't you change the code of the servlet that generates page A
> >so that the INPUT-tags aren't always empty? If you post arguments
> >to the servlet, the correspondant INPUT-tags get these arguments as
> >default value, otherwise they remain empty. This way you can
> >rebuilt your page A every time someone makes a mistake...
>
> I'm not the original poster, but my form was from static html posted to
> a servlet, which made that option a lot more work than I'd have liked.
> Even the back button works on some browsers, but still causes the
> page to be reloaded on others..
>
> David
>
> ___________________________________________________________________________
> 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

--
===========================================
Jon Thor Williams                     Phish
Java Software Specialist                :-)
TrailerSoft [EMAIL PROTECTED]                  *
"I want to party like it's 1929!" - Unknown
===========================================

___________________________________________________________________________
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