I thought I missed the previous mails. But they are in
'Bulk Mail' folder ???!!!

It seems working if I forward the submitted URL to the
error page and resubmit when I hit the 'go back'
button. Thanks for your suggestions.

I use the request object rather than session object to
pass the URL. We follow the convention that keep the
variables / objects in session, only if they are
accessed across the pages. If it is from one page to
another, pass it via request object.

Thanks again.

Regards
Raja


--- Martin Kisimov <[EMAIL PROTECTED]>
wrote:
> Rather put it in the request object as it is
> considered bad practice to
> store unnecessary info, which is not client session
> specific in the session
> object
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 11 July 2002 06:24
> To: JDJList
> Subject: [jdjlist] Re: Caching issue
> 
> 
> 
> Yeah that would work... the HttpSession object is
> session in JSP.
> 
> Greg.
> 
> 
> 
> 
> 
> "Paul Franz" <[EMAIL PROTECTED]> on 2002/07/11
> 12:02:29 PM
> 
> Please respond to "JDJList"
> <[EMAIL PROTECTED]>
> 
> To:   "JDJList" <[EMAIL PROTECTED]>
> cc:
> 
> Subject:  [jdjlist] Re: Caching issue
> 
> 
> Don't JSPs support session objects? (I have never
> done any JSP stuff just
> Servlets). If so, couldn't you save the variables
> (or even the HTML page)
> in
> a session variable.
> 
> Paul Franz
> 
> ----- Original Message -----
> From: "Raja Periyasamy" <[EMAIL PROTECTED]>
> To: "JDJList" <[EMAIL PROTECTED]>
> Sent: Thursday, July 11, 2002 11:42 AM
> Subject: [jdjlist] Re: Caching issue
> 
> 
> > Paul and Greg:
> >
> > Thanks for the feedback.
> >
> > I can not recreate the form or explicitly specify
> the
> > file name for the 'go back' button on the error
> page.
> > Because this error page is common to all the JSP
> > pages. The only code I can associate with that
> button
> > is 'window.history.back()'.
> >
> > Any other thoughts ...
> >
> > Thank you.
> >
> > -Raja
> >
> >
> > --- [EMAIL PROTECTED] wrote:
> > >
> > >
> > > You can use the following example of JavaScript
> to
> > > skip over pages that you
> > > don't want cached:
> > >
> > > (See attached file: page3.html)(See attached
> file:
> > > page2.html)(See attached
> > > file: page1.html)
> > >
> > > Look for the line:
> > >
> > > <A
> > >
> >
>
HREF="javascript:location.replace('page2.html')">Page
> > > 2</A>
> > >
> > > I use it with the code you outlined to prevent
> > > caching of the JSP/Servlet pages and to prevent
> the
> > > error you are seeing.
> > >
> > > HTH,
> > > Greg.
> > >
> > >
> > >
> > >
> > >
> > > Raja Periyasamy <[EMAIL PROTECTED]> on
> 2002/07/11
> > > 10:49:56 AM
> > >
> > > Please respond to "JDJList"
> > > <[EMAIL PROTECTED]>
> > >
> > > To:   "JDJList" <[EMAIL PROTECTED]>
> > > cc:
> > >
> > > Subject:  [jdjlist] Caching issue
> > >
> > >
> > >
> > > I get 'Page has expired' warning when I use
> > > JavaScript
> > > code 'window.history.back()'.
> > >
> > > Here is the problem instance. All our JSP pages
> are
> > > not cached. We have the following scriplet code
> in
> > > our
> > > JSP pages :
> > >
> > >      response.setHeader( "Cache-Control",
> "no-cache"
> > > );
> > >      response.setDateHeader( "Expires", 0 );
> > >      response.setHeader( "Pragma", "No-cache" );
> > >
> > > We've a JSP page that shows a input form. Enter
> some
> > > invalid data and submit to a servlet.  ( FORM
> action
> > > is POST ). Error JSP page is displayed. Click on
> 'go
> > > back' button on the error page. The link to the
> 'go
> > > back' button is
> 'javascript:window.history.back()'.
> > > This causes the 'Page has expired' warning page.
> > >
> > > If I make that particular form JSP page cached,
> that
> > > is comment the above lines, I get the form page
> with
> > > previously entered values when I hit the 'go
> back'
> > > button.
> > >
> > > Is there any solution to go back to the form
> page
> > > without getting the warning page and without
> making
> > > that form JSP page cached, when I hit 'go back'
> > > button
> > > on the error page?
> > >
> > > Any help would be greatly appreciated.
> > >
> > > Thank you.
> > >
> > >
> > >
> > >
> __________________________________________________
> > > Do You Yahoo!?
> > > Sign up for SBC Yahoo! Dial - First Month Free
> > > http://sbc.yahoo.com
> > >
> > > To change your membership options, refer to:
> > > http://www.sys-con.com/java/list.cfm
> > >
> > >
> > >
> > >
> > >
> > <HR>
> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
> > Transitional//EN">
> >
> > <html>
> > <head>
> > <title>Untitled</title>
> > </head>
> >
> > <body>
> >
> > <A
> >
>
HREF="javascript:location.replace('page4.html')">Page
> > 4</A>
> >
> > </body>
> > </html>
> 
=== message truncated ===> To change your membership
options, refer to:
> http://www.sys-con.com/java/list.cfm
> 


__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

To change your membership options, refer to:
http://www.sys-con.com/java/list.cfm

Reply via email to