java 面包屑实现

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7246304/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-30 19:15:45  来源:igfitidea点击:

BreadCrumb Implementation

javae-commercebreadcrumbs

提问by Umesh Awasthi

I have a requirements of implementing breadcrumb in our J2EE application at both back-end and on user interface. I only know what is breadcrumb but not aware of its other technical aspects as i have head that it also help in SEO and other things.

我需要在后端和用户界面上在我们的 J2EE 应用程序中实现面包屑导航。我只知道什么是面包屑,但不知道它的其他技术方面,因为我认为它也有助于 SEO 和其他事情。

My question is what things one need to be take care while developing such functionality like one few approaches i can think of

我的问题是在开发这样的功能时需要注意哪些事情,比如我能想到的几种方法

  1. Put user traversing path in the session and can use that to build breadcrumb.
  2. Like in product detail page instead how user navigate show the path as Catalogue->Category->Product.
  1. 将用户遍历路径放在会话中,并可以使用它来构建面包屑。
  2. 就像在产品详细信息页面中一样,用户导航的方式将路径显示为 Catalogue->Category->Product。

Please suggest me what best approach one should have, also if any one can refer a sample implementation in Java for the breadcrumb that will be an added bonus for me to move ahead

请建议我应该采用什么最佳方法,如果有人可以参考 Java 中的示例实现来获取面包屑,这将是我继续前进的额外奖励

采纳答案by Umesh Awasthi

After doing some research i found the suitable answer on web development.here is a link for the same Link for BreadCrumb

在做了一些研究之后,我找到了关于 Web 开发的合适答案。这里是BreadCrumb相同 链接的链接

回答by Denis Skarbichev

I'm not sure about technology you gonna use. But there is breadcrumb add-on for Vaadin. You can find it in addon-directoryand probably find some ideas for your project.

我不确定你要使用的技术。但是 Vaadin 有面包屑插件。您可以在addon-directory 中找到它,并且可能会为您的项目找到一些想法。