Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem adding an element to a selection box in Netscape

 
kris isfeld
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem is that I want to add an item to a selection box in Netscape and apparently you must refresh the screen. The way I am currently doing this is by calling history.go(0); I do not lose any of the text box info that the user adds but I lose hidden input info that I set from javascript and also javascript variables that I set. I don't want to have to hit the server side code on the refresh.
Please help...
 
kris isfeld
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK
 
kris isfeld
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK
 
Daniel Olson
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can try this:
Sometimes, you may need to call resp."setHeader()" to set custom headers to your response. For example, to prohibit browsers or proxys from caching data, specify all these in response:
res.setHeader("Pragma", "no-cache"); //HTTP/1.0 Proxy Servers
res.setHeader("Cache-Control", "no-cache"); //HTTP/1.1 Proxy Servers
res.setDateHeader("Expires", 0); // for Browsers
This is taken from Vipan Singla's "Coding Java Servlets includes Java Server Pages" at http://www.vipan.com/htdocs/usefulservlets.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic