• Post Reply Bookmark Topic Watch Topic
  • New Topic

I have one.jsp,two.jsp,three.jsp....  RSS feed

 
sanjeev katthi
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you asking us how to create hyperlinks?
 
Abhishek Asthana
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sanjeev, this is one of those numerous doubts which arise due to a basic confusion.
Please remember that JSP is nothing but java code/tags interspersed in HTML. So everything that you do in an HTML file, like making fancy text markups,adding javascript files, creating hyperlinks etc. you can do in a JSP file also!
The java code/tags help you manage the dynamic stuff!
Hope this clears some air!
[ July 20, 2007: Message edited by: Ulf Dittmer ]
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Amit Kumargupta
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use the HTML href tag
for e.g

<a href="two.jsp">Click here</a>

:p
 
vanlalhmangaiha khiangte
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
one.jsp
FORWARD -> create link to "two.jsp"

two.jsp
FORWARD -> create link to "three.jsp"
BACK -> create link to "first.jsp"


three.jsp
BACK -> create link to "two.jsp"
[ July 20, 2007: Message edited by: vanlalhmangaiha khiangte ]
 
Anupam Sinha
Ranch Hand
Posts: 1090
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[BPS: Removed unhelpful remark]
[ July 20, 2007: Message edited by: Ben Souther ]
 
sanjeev katthi
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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??
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!