Re: Can anyone help with solving the BACK button problem, in th e browser?

2001-06-25 Thread Eda Srinivasareddy Eda
 Hi Smith
Could u please send the javascript code related to back button problem.
Thanks
Eda
 Spencer Smith [EMAIL PROTECTED] wrote: 




That won't work. I solved the problem using javascript. Javascript doesn't cache like JSP pages does, so you can get around this problem using javascript.

If you want, I can send you the code I use.

- Original Message - 
From: Thane Eisener 
To: '[EMAIL PROTECTED]' 
Sent: Thursday, June 07, 2001 10:12 AM
Subject: RE: Can anyone help with solving the "BACK" button problem, in th e browser?

Oops, I guess I should test before I post. It looks like newer browsers don't support this as a META tag only as a header.
I added the following to one of my action classes and the perform() method was called when I pressed 'Back': 
response.addHeader("Pragma","no-cache"); response.addHeader("Cache-control","no-cache"); 
Hope it helps, Thane 
-Original Message- From: Peter Alfors [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 07, 2001 11:35 AM To: [EMAIL PROTECTED] Subject: Re: Can anyone help with solving the "BACK" button problem, in th e browser? 
Thane , 
I am using:  META http-equiv="Expires" content="now" in my header, and my action is not re-executed when I use the browser back button. Is there another option I should be using? 
thanks,  Pete 
Thane Eisener wrote: 
   I seem to recall a META tag called something like pragma-no-cache that  you can embed in your page which will force the page to reload (not  just display a snapshot). This should enable handling the situation in  scriptlets or your action class.   -Original Message-  From: Peter Alfors [mailto:[EMAIL PROTECTED]]  Sent: Thursday, June 07, 2001 9:52 AM  To: [EMAIL PROTECTED]  Subject: Re: Can anyone help with solving the "BACK" button problem,  in  the browser?   Depending on which browser you use, and the data on the page, the back  button  may cause (or ask) the page to reload.  However, some browsers (like IE) only display a snapshot of what the  last page  rendered to.  Therefore, you cannot use scriptlets or the action class. However,  you are able  to kick-off javascript.  If you can gaurantee that your users will have javascript enabled, you  can write  a simple test to see if this page was already displayed to the user.  You could  check a flag (hidden field) when the page loads. If the flag is true,  then use  the javascript to reload to your desired page.   HTH,  Pete   "Dudley Butt@i-Commerce" wrote:Please help, When the user pushes the back button, I want the page to redirect or  refresh   to a different page, please, any ideas? Thanx guys and gals   Dudley Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!http://personal.mail.yahoo.com/

Re: Where should I use .do and where .jsp for the same file

2001-06-13 Thread Eda Srinivasareddy Eda
 Hi 
The main utilization of .do arises with the html:link... tag. '.do' is used only to call a mapping not to call a jsp. If u wanted to call a mapping through a link we can'tcall it as '/mappingname'.We can callit only as '/mappingname.do' . For clarity see the following code.
html:link page="/iterate" style="text-decoration:none" target="_self" is WRONG
html:link page="/iterate.do" style="text-decoration:none" target="_self" is CORRECT.
But with the submit button we can call a mapping as '/mappingname'. Here no need to use .do extension.
Are there any more points regarding this with any one of u pals.
Eda

 Eda Srinivasareddy Eda [EMAIL PROTECTED] wrote: 

Hi 
Here is a small doubt. Please inform me where should I call a file with .do extension and where should I call the same file with .jsp extension. 
Looking forward 
Srinivas


Do You Yahoo!?Yahoo! Mail Personal Address - Get email at your own domain with Yahoo! Mail.Do You Yahoo!?
Yahoo! Mail Personal Address - 
Get email at your own domain with Yahoo! Mail.

Where should I use .do and where .jsp for the same file

2001-06-11 Thread Eda Srinivasareddy Eda
Hi 
Here is a small doubt. Please inform me where should I call a file with .do extension and where should I call the same file with .jsp extension.
Looking forward
SrinivasDo You Yahoo!?
Yahoo! Mail Personal Address - 
Get email at your own domain with Yahoo! Mail.