Results 1 to 6 of 6
- 07-09-2008, 09:53 AM #1
Member
- Join Date
- Jun 2008
- Posts
- 54
- Rep Power
- 0
warning that page has expired and i need to refresh the page again
We have built an dynamic web application. In the application if we use the browser back button or forward button, it shows a warning that page has expired and i need to refresh the page again. Is there any way to avoid this. This problems come in IE6.
Like this
Warning: Page has Expired The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you.
To resubmit your information and view this Web page, click the Refresh button.
Is there any way to do this.
Help needed
- 07-13-2008, 06:02 PM #2
form submit
Write your own forward and back buttons, just label them forward / back / update or whatever makes sense. Do the logic in the forms handling code. Too many browsers, and each have their own agenda.
It is consequential enought to do forms handling, I would not rely on browser for forward and back control.
I get over half of my code for free writing solutions to other people's questions. I wrote a major core component Thur, Fri, Sat that I had made sluggish progress on. I call it LittleBeanTestSuite and WombatKeyControl
( humor folks, humor )
Do you think I need help? If you do, you have been talking to too many interviewers and need to focus on the code base.Introduction to Programming Using Java.
Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor
- 07-13-2008, 06:52 PM #3
This is not a problem, its a feature.
Why do you consider it a problem, this is how the Web works.
Building applications that do what you want, and still let the user use the browser's back and forward buttons has been a challenge from the beginning. Its a feature. Its why we developers get paid big bucks.
- 07-15-2008, 12:40 PM #4
Member
- Join Date
- Jun 2008
- Posts
- 54
- Rep Power
- 0
This is no-cache problem?
ya ...you are saying right that this is not problem . But we need Solution when i return to shop cart page to product page and again go to shop cart page ....this warning page come........
Somebody told me that this is no-cache problem . I put some code in our java file.
Like this:
public class AntiCacheFilter implements Filter {
public void destroy() {}
public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain) throws IOException, ServletException {
if (response instanceof HttpServletResponse) {
((HttpServletResponse) response).setHeader("Cache-Control",
"no-cache, must-revalidate");
((HttpServletResponse) response).setHeader("Pragma", "No-cache");
((HttpServletResponse) response).setDateHeader("Expires", 1L);
}
chain.doFilter(request, response);
}
public void init(FilterConfig config) throws ServletException {}
}
I added this code
((HttpServletResponse) response).setHeader("Pragma", "No-cache");
((HttpServletResponse) response).setDateHeader("Expires", 1L);
in file .But No solution.....
- 07-15-2008, 01:45 PM #5
The phrase "its not a problem, its a feature" is an idiom. You have a problem, but the system is working as designed. Its a feature.
If your problem space requires different actions, you have to implement it all, because the browsers are working properly per the spec.
- 07-15-2008, 01:48 PM #6
Similar Threads
-
Go back to previous page using session in JSP page
By gopikarikati009 in forum JavaServer Pages (JSP) and JSTLReplies: 2Last Post: 06-23-2011, 10:30 AM -
Refresh the page
By udhayageetha in forum AWT / SwingReplies: 2Last Post: 07-01-2008, 09:03 AM -
How to Refresh the same page by JSP
By AbuAziz in forum JavaServer Pages (JSP) and JSTLReplies: 2Last Post: 12-10-2007, 04:06 AM -
How to run jsp page
By nikisonproblem in forum New To JavaReplies: 1Last Post: 07-09-2007, 03:16 PM -
warning: page has expired
By Peter in forum Web FrameworksReplies: 2Last Post: 07-04-2007, 07:45 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks