File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes BreadCrumbs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "BreadCrumbs" Watch "BreadCrumbs" New topic
Author

BreadCrumbs

Job Anandam
Greenhorn

Joined: Nov 09, 2006
Posts: 8
Hi,

I am planning to implement Breadcrumbs facility in my site.How to proceed with it ? is there any good site,tutorial which would be of help ?
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

BreadCrumb
Chandra Bhatt
Ranch Hand

Joined: Feb 28, 2007
Posts: 1707
Hi Job,

Before you could proceed for implementing breadcrumb:

1- Did you finish with categorization or say segmentation of the all the
stuffs for your website.
2- Now you need to do the leveling, means what comes under level 1, level 2
and level 3 and so on.
Likewise you start from Home (Level 1), and go to Education (Level 2),
Technical Education (Level 3), Software (Level 4) for example.
3- Does each and individual page having its unique identity?
4- You structure these all information in the database including the
URL, unique identification number for generating page etc etc.

5- Finally comes implementation.


cmbhatt
Job Anandam
Greenhorn

Joined: Nov 09, 2006
Posts: 8
Hi Chandra,

appreciate your help. could you be more specific on the following point

4- You structure these all information in the database including the
URL, unique identification number for generating page etc etc.

I am not planning for a Database based breadcrumb if that is what you have intended in your suggestion.
Simple means would be highly usefull to have it kickstarted and going !!so please help me likewise
Chandra Bhatt
Ranch Hand

Joined: Feb 28, 2007
Posts: 1707
Originally posted by Job Anandam:
Hi Chandra,

appreciate your help. could you be more specific on the following point

4- You structure these all information in the database including the
URL, unique identification number for generating page etc etc.

I am not planning for a Database based breadcrumb if that is what you have intended in your suggestion.
Simple means would be highly usefull to have it kickstarted and going !!so please help me likewise



I said, do you have unique identification number to individual kind of
pages you generate. (Not sure if you have static content or dynamic)

Using that unique identification number, we could search from the DB
following stuffs:
1- What category we are talking about
2- Under what category given category comes under
For example you are talking about Technical Education (my example)
and its identified as 50. So you can look into DB and find out its
parent Category Name and Education whose in turn parent is Home.
(top category).

You can put these all information in property file also, if DB way is
not of your interest.
Chandra Bhatt
Ranch Hand

Joined: Feb 28, 2007
Posts: 1707
You can put breadcrumb information in property file as:

id = category_name, url
70 = software, /home/education/technical_education/software
Fire an id, get category_name and url.
Prepare the breadcrumb with acquired URL as:

Home > /home/education > /home/education > /home/education/technical_education
> /home/education/technical_education/software


Hope this helps you.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: BreadCrumbs