• Post Reply Bookmark Topic Watch Topic
  • New Topic

Handling Browser refresh

sunilkumar pal
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am using following code for refresh browser

if(request.getHeader("Accept").equals("*/*")){ request.getSession().invalidate();
try{ request.getRequestDispatcher
}catch(Exception ex){ }

Its working good.
But problem is that in some system without refresh browser request.getHeader("Accept") return "*/*"
where as it should return "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, */*" wich is default

please help me for solve above problem .
How to set default header should come like this "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, */*"

is there any solution for handling refresh browser.

my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!