Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

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

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you asking us how to create hyperlinks?
 
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Rancher
Posts: 43028
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Use the HTML href tag
for e.g

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

:p
 
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 1090
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
What's gotten into you? Could it be this tiny ad?
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic