I am not clear as to why you would you want  doGet to be called instead of
doPost. is there any advantage? if so please let me know.
I mean why cant you keep that code(whatever you want to put in doGet) in
doPost?. and even if you want to put it in doGet why not call doGet from
within doPost instead of redirecting. (which i believe will be a performance
overhead as it would cause a call to be made to the client)


----- Original Message -----
From: "Victor Hadianto" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 28, 2000 2:23 PM
Subject: Re: repost data in doGet


> > No, that is what it is supposed to do (after asking the user to confirm
> the resend of the post data). What is the problem?  If you >don't want
this
> behavior, have your post method do a sendRedirect (back to the same
address,
> if you like) - which will be >taken as a get.
>
> Isn't that interesting? I always thought that the doGet() will be called
> instead if the user click on the 'refresh' button.
>
> I suppose the res.sendRedirect() will solve the problem, however this will
> show on the address bar of the web browser that it returns back to the
> original page. Anyway, I will implement this.
>
> thanks
>
> victor
>
>
___________________________________________________________________________
> 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