Victor Hadianto <[EMAIL PROTECTED]> wrote:
>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.

No, it just repeats the previous command

>
>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.

Actually, I meant "the same as the POST page" - a servlet can handle both GET and 
POST. That way the user would never see the difference.



------------------------------------------------------------------------
Russell Gold                     | "... society is tradition and order
[EMAIL PROTECTED]    (preferred)  | and reverence, not a series of cheap
[EMAIL PROTECTED]              | bargains between selfish interests."
[EMAIL PROTECTED]       |   - Poul Anderson, "Iron"

___________________________________________________________________________
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