If you cannot for some reason use Michael's solution, and must need to keep
sending back the form to the user and have it reposting, then you will,
instead of using
response.setHeader("Refresh", 120)
have to use javascript in the sent page to cause the form be submitted
repeatedly.
Unsure what could be your reason to send form data back to the user
repeatedly?
-----Original Message-----
From: Krishnamurthy, Balaji [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 11:39 AM
To: [EMAIL PROTECTED]
Subject: HTTP POST Method
> Hello:
>
> We have a JSP which is set to refresh at 2 minutes interval. In both
> Netscape and IE the page is getting refreshed automatically according to
> the time we speficied.
>
> The problem is, using GET method in while refreshing both IE and Netscape
> is sending all the form elements appropriately. However using POST method,
> both IE and Netscape is not re-posting the form attributes. Hence our
> underlying queris (which depends on these attributes like account...)
> fail.
>
> This works file
> ............................
> <FORM name=criteria action=retrieve.jsp method=get>
> // set the auto-refresh to 2 minutes
> response.setHeader("Refresh", 120)
>
> This does not work.
> ....................................
> <FORM name=criteria action=retrieve.jsp method=post>
> // set the auto-refresh to 2 minutes
> response.setHeader("Refresh", 120)
>
>
> Since it is not working in both IE and Netscape, I am assuming that the
> problem is with our code. In case of Servlet, we will normally implement
> doGet and doPost. However in JSP, both get and post are serviced by
> jspService method.
>
> Is there anyother property that we need to setup so that re-posting would
> send all the attribute appropriately?
>
> Thanks
> Balaji
>
>
>
___________________________________________________________________________
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