File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Problem adding an element to a selection box in Netscape Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Problem adding an element to a selection box in Netscape" Watch "Problem adding an element to a selection box in Netscape" New topic
Author

Problem adding an element to a selection box in Netscape

kris isfeld
Greenhorn

Joined: Mar 20, 2001
Posts: 5
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

Joined: Mar 20, 2001
Posts: 5
OK
kris isfeld
Greenhorn

Joined: Mar 20, 2001
Posts: 5
OK
Daniel Olson
Ranch Hand

Joined: Jan 05, 2001
Posts: 81
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem adding an element to a selection box in Netscape