• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Refresh problem...

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 625
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
You can't expect to wield supreme executive power just because
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic