• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IE loads the page twice

 
Justin Chu
Ranch Hand
Posts: 209
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I hit my page with IE, it loads the page twice based on the print outs of my app..
I've tried Opera and Mozilla, and they only load the page once.
what can be the cause?
Chu
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you say "when i hit my page...", are you using a link or submitting a form?
I've encountered behaviour like this in IE when we had dodgy code for submitting the page like this:

and this will submit the request twice!
The hitting the 'submit' button causes a request to be sent, then the submit() in the function causes another request to be sent...
Dave
 
Sean MacLean
author
Ranch Hand
Posts: 621
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've just noticed this issue as well. Don't have a solution but can say that it appears to occur even without javascript. I've only noticed it with Macintosh IE 5.0 build 2022. From the server logs I can see that it is submitting with a post and then a get. It also only seems to happen after a server restart and then the first time you encounter the page.
Sean
 
Sam Cala
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check to see guys if you have any html/jsp comment in that page...
 
Justin Chu
Ranch Hand
Posts: 209
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I say "hit" means regular refresh of the website.. The JSP page only contains some html and jsp:include to servlets.
When is say the page is loaded twice, I can only verify that the SERVLETS are loaded twice.. Since the System.out codes are in the servlets.
Here's the headers to my JSP page.

I suspect vp:cacheOff tag might be causing it?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic