wood burning stoves*
The moose likes Servlets and the fly likes Navigational Handler with Servlet or JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Navigational Handler with Servlet or JSP" Watch "Navigational Handler with Servlet or JSP" New topic
Author

Navigational Handler with Servlet or JSP

kiran badi
Greenhorn

Joined: Oct 26, 2009
Posts: 26
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

Joined: Mar 10, 2010
Posts: 25
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

Joined: Oct 27, 2005
Posts: 19679
    
  18

And welcome to the Ranch!


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
kiran badi
Greenhorn

Joined: Oct 26, 2009
Posts: 26
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

Joined: Oct 26, 2009
Posts: 26
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Navigational Handler with Servlet or JSP