aspose file tools*
The moose likes Servlets and the fly likes Refresh problem... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Refresh problem..." Watch "Refresh problem..." New topic
Author

Refresh problem...

Mandy Smith
Ranch Hand

Joined: Jun 26, 2001
Posts: 62
I have a servlet which outputs some data obtained from database on webpage which also has a link on this webpage, when clicked on this link it opens up another servlet, which does some updates to the database for which i have a button which does update, on click of this update button, it has to update the database, close the popup servlet and also has to refresh the webpage. The problem is when it refreshes the webpage, i see a window popped up from IE browser saying
<b>This page cannot be refreshed without resending the information. Click Retry to send the information again, or
click cancel button to return to the page that you were trying to view.</b>
<b>The problem is i don't want this window to popup? Could anyone please help me to solve this problem?</b>
I tried reversing my get and post methods of servlet but it still shows up in IE, but it is doesn't show up in netscape.
I have another question, how to set the TextArea's maxlength?
Appreciate your help,
Thanks.
Sean Casey
Ranch Hand

Joined: Dec 16, 2000
Posts: 625
I'm not sure to help you with your first question. Just another sign of the problems with Microsoft.
As for your second question you can specify the size of the textarea with the constructor, however, this will not limit the size of the string but rather the viewing area of the textarea. I suggest once you get the string, make sure it's smaller than the max length you want, else have them input another string. I hope that helps.
S Chandra Mohan
Ranch Hand

Joined: Oct 19, 2000
Posts: 75
Hello,
Normally whenever u refresh a servlet which is written in
"doPost" method, it will ask this question.
Better rewrite the servlet in "doGet" method and try out.
U wont get the message.
All the best

Have a wonderful day and wish u success<p>S Chandra Mohan<br />sc_mohan_us@yahoo.com
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Refresh problem...