This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

HELP into JSp (Code works fine with NS but not with IE5.0)  RSS feed

Sanjay pts
Ranch Hand
Posts: 357
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a problem,
This complete code is written into single jsp files.
I have chose one customer into drop-down List, and accordingly onchange of that drop-down list i called one java script function in which i retrive the code of that customer and call document.location.href="same jsp", so it will call the same jsp and with selected customer code i can retrive data from data base and assing it to different fields.
Now the problem is suppose i have a two customer and i choose one customer first and then second ok. So in this case it will call same JSP ,and assgined data accordingly (uptil this it works fine), but if i choose again the first customer it will take the data from temp files, which has been priviously printed (This i have seen by printing System.out.println using). Because of this problems the updation i have made is not reflected into perticular fields and take previous data first time.

This code works fine with Netscape4.6 but it will give an error with IE5(because it will consider earlier code), so how should i refresh this things.Is there any methos available which call JSP everytime and not take data from temp folders(methods into javascript as well as into JSp)???.

If u r not getting me just let me know which part u didnt understand.
Thanx patel.
William Brogden
Author and all-around good cowpoke
Posts: 13078
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It sounds like one browser is caching the old page - I saw a note the other day that suggested the following is the way to prevent that:
String tmp = request.getProtocol() ;
if (tmp.equals("HTTP/1.0")) {
response.setHeader("Pragma", "no-cache");
} else if (tmp.equals("HTTP/1.1")) {
response.setHeader("Cache-Control", "no-cache") ;

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!