I don't think so the way you have sent the code will do the need full. In the code is 
the form and refresh set header is on same page? If yes then it won't work for get and 
post either as the refresh action won't submit the form, so the request won't go to 
the next page at all, it will just refresh the current page.

But if the form is on first page and the refesh tag is on second page then it will 
work for both the get and post method of form. In the case of post the browser will 
ask the page cannot be refreshed without resending the information again.

-----Original Message-----
From: Krishnamurthy, Balaji [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 26, 2002 12:09 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

Reply via email to