• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Navigational Handler with Servlet or JSP

 
kiran badi
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can someone give me some suggestions as how to I implement navigational handler with servlet or JSP ?

Lets say I have three pages Page A, Page B, and Page C,

if user navigates from Page A to Page C, I need to show Page A>Page B> Page C.

How can I implement this ?

Can you do something like generate unique cookie for each page and read that cookie in next page and thereby track page visits.Is their a better way of doing this ?
 
Suraj Jadhav
Greenhorn
Posts: 25
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I am guessing right you want to implement something like BreadCrumbs in your application. There are different ways to implement and its depends upon your application. For e.g. If your application is small then you can implement some kind of traversing mechanism(using collection). You can also use database or JavaScript. You can also use Apache tools: http://wicket.apache.org/apidocs/1.4/org/apache/wicket/extensions/breadcrumb/package-summary.html

For other references you can check:
1. http://content.websitegear.com/article/breadcrumb_navigation.htm
2. http://www.smashingmagazine.com/2009/03/17/breadcrumbs-in-web-design-examples-and-best-practices-2/
 
Rob Spoor
Sheriff
Pie
Posts: 20494
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And welcome to the Ranch!
 
kiran badi
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Suraj and Rob.

You are right, I was looking for breadcrumbs kind of navigation,Let me check the links and come back here.

 
kiran badi
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone give me some idea as how breadcrumbs can implemented via JSP/Servlets/JSTL tags though I now know as what breadcrumbs are. I am not sure as how do I just use wickets breadcrumb packages.I need atleast 3 levels of navigational path.

I am using Tomcat 7.0.11 with plain jsp/servlets/jstl.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic