|
INTERVIEW QUESTIONS
J2EE
JSP
DETAILS
Question: How can i restrict the user from Clicking of Back button in any browser
Answer: Whenever our page is cached, back button displayes
cached page rather a fresh page. So if we can block the caching
anyhow, the back button will automatically get disabled. We can
achieve this working by setting two attributes in META tag.
that is
("Cache-Control", "no-cache") and
("Pragma", "No-cache")
|
|
|
Category |
JSP Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.3) By 7464 users |
Added on |
7/17/2011 |
Views |
71634 |
Rate it! |
|
|
Question:
How can i restrict the user from Clicking of Back button in any browser
Answer:
Whenever our page is cached, back button displayes
cached page rather a fresh page. So if we can block the caching
anyhow, the back button will automatically get disabled. We can
achieve this working by setting two attributes in META tag.
that is
("Cache-Control", "no-cache") and
("Pragma", "No-cache") Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
Wat is the difference between and in jsp..wen translate into servlet..wer it is stored in servlet..can we create global variables in jsp..if yes then how??
|
View Answer
|
|
What is the diff. b/w PAGE,APPLICATION and SESSION implicit objects of JSP?
|
View Answer
|
|
What is difference between getAttribute() and getParameter()?
|
View Answer
|
|
How we abort jsp page from a servlet
|
View Answer
|
|
Where can we find the compiled file of jsp in the directory struture.
|
View Answer
|
|
What is the difference betweeen JSP forward and servlet forward methods?
|
View Answer
|
|
How to pass java script array to jsp page?
|
View Answer
|
|
What is the difference between session and cookie ?
|
View Answer
|
|
Where do we use hidden variables and url rewriting? and wat is the difference between them?
|
View Answer
|
|
How to overwrite the init and destroy method in a JSP page.
|
View Answer
|
|
A] Is the response.sendRedirect ends the existing session? B] If I logged in to a site ( say a.com) & then in same browser window I type the url for another site (say b.com), then does my session gets ended on first site ( a. com ) ?
|
View Answer
|
|
How do we perform redirect action without using response.sendRedirect(" ");
|
- JSP Interview Questions & Answers">
View Answer
|
|
What is the difference between Difference between doGet() and doPost()?
|
View Answer
|
|
When many Users are browsing the same application at the same time and they click the "Submit" button will many objects be created for each and every User?
|
View Answer
|
|
What is the default scope of jsp tags?
|
View Answer
|
|
What are the default objects provided by JSP container? Other than page, request, session and context objects.
|
View Answer
|
|
What is the difference between , page directive include, action tag include ?
|
View Answer
|
|
I have a String name & Map m, in my bean class. I have get & set methods on both.
To Display the String name, i do
The above one works fine. Te below one, displays the entire Map contents
I know the KEY, how do i display the VALUE for that KEY
|
View Answer
|
|
what is the use of extends in jsp...we we want to import a class in current jsp file which i am working how can i do that ...if i use extnds for that means how can i do that...pls explain me this
|
View Answer
|
|
How to check the value in the text field is not a number
|
View Answer
|