Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums

Go Back   Code Forums > Application and Web Development > Java

Reply
 
LinkBack Thread Tools Display Modes
Old 03-29-2006, 04:03 AM   #1 (permalink)
j.gohel
Code Monkey
 
Join Date: Apr 2005
Posts: 68
j.gohel is on a distinguished road
When refreshing the page redirecting the user to my desired page??

In my MVC based application, when i am displaying some readonly data from my database in a JSP page & when i click on the button i get navigated to some other next page...

When i click on the back button i have set the response headers for no caching.

But when cliking on the back button & then refreshing the page the same page gets displayed with the readonly details previously displayed.But what i want to do is whenever the user refreshes the page i want to make the user redirect to my desired page??

Is it possible??
If yes then how can i do it??
If no then some alternatives to achieve to do this thing??

Thanks,
Jignesh
j.gohel is offline   Reply With Quote
Old 03-29-2006, 02:18 PM   #2 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,161
Belisarius is on a distinguished road
I never figured out how to do it. I tried quite a bit, and the no-cache meta tag never seemed to do a bit of good. I know there's a way to tell the browser the page is expired (and I tried that meta tag too), but I never could get it to work correctly. Let me know if you ever figure it out.
__________________
GitS
Belisarius is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 05:16 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting