I have one.jsp,two.jsp,three.jsp. one.jsp has a link. if we click the link we will go to two.jsp. In two.jsp, a link, if we click it, we will go to three.jsp.and from three.jsp if i click back i have to go to two.jsp.. how did you do this??? reply me immediately...
Sanjeev, allow me to point out something you might find useful. If you write "reply me", then that sounds like an order is being given, which will make people less likely to want to respond. A "please reply me" would be much better. And adding "immediately" makes it worse - folks here aren't twiddling thumbs, waiting to answer questions. They'll do it in their own time, when it suits them, not when it suits you.
sorry folks, if my words make you feel bad.. i have requested and not ordered or something else... sorry guys those who feel.. my question is i have three jsp's. in one.jsp i have a anchor tag which will call two.jsp. In two.jsp, i have one more anchor tag, which makes call to three.jsp. and I don't have any anchor tag in three.jsp to go to two.jsp. I can go by clicking back button in the browser.(is it right??) so, how it is going back.. i mean, to the second.jsp? In the backened what is happening??
Originally posted by sanjeev katthi: In the backened what is happening??
Your browser keeps a history stack of all the pages you've visited. When you hit the back button, the browser will either show you the version of the last page that it has in its cache or, if the browser didn't cache the last page, make another request to get the last page.
I'm not sure, exactly what you are trying to do. Are you trying to create a link that takes you back to the the last page you were on; but without knowing ahead of time what page that will be?