hi!
change the flow: user enters data --> POST to controller which enters data
in session --> sendRedirect (GET) to page which get refreshed every 2 secs
and which data out of session for displaying it.

-mw

----- Original Message -----
From: "Krishnamurthy, Balaji" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 25, 2002 8:39 PM
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