Struts 2.X 应用程序中菜单的 Struts-Menu 替代方案

发布于 2024-11-09 09:58:19 字数 443 浏览 3 评论 0原文

根据用户反馈,我正在为此主题提出一个新问题。

因此,我目前正在使用 Struts-Menu 来处理 Struts 2 J2EE 应用程序的菜单需求。它不一定是我通过使用它找到的想要使用的包。那么这个包有哪些替代方案呢?我立即涌向 Struts-Menu,因为我看到大量的网络搜索流量指向它,包括那些使用 Struts2 的人。我担心的是,考虑到它的最后一次更新是 2007 年,以及我为使其与我的配置兼容而必须进行的额外踢踏舞,因此将来很难使其与其他软件包兼容。对于我的口味来说,现在它似乎太脆弱了。

我的应用程序中有几个不同的菜单,但我目前特别要解决的菜单是这样的......当鼠标悬停在顶层菜单上时,它会下拉。鼠标悬停时子菜单会水平展开。由于菜单中不包含单选按钮或复选框,因此只能选择一个菜单项。此特定菜单不需要数据库访问权限来填充其子菜单。它的工作原理有点像 Struts-Menu 演示中的 Velocity CoolMenus4。

Per user feedback, I am opening a new question for this topic.

So I am currently using Struts-Menu to handle my menu needs for my Struts 2 J2EE application. It is not necessarily a package I wish to work with I have found by playing around with it. So what are some alternatives to this package? I immediately flocked to Struts-Menu because I saw a fair amount of web search traffic pointing to it, including those who use Struts2. What I am worried about is difficulty in the future of making it work with other packages, given its 2007 last update and the extra tap dance I had do to make it work with my configuration. It seems too fragile at this point for my taste.

I have several different menus in my app, but the one I am specifically addressing at the present is like this ... The top level menu drops down upon mouse hover over it. The submenus expand horizontally upon mouse hover. Exactly one menu item can be selected as no radio buttons or check boxes are contained in the menu. This particular menu does not require db access to populate its children. It works sort of like Velocity CoolMenus4 from the Struts-Menu demos.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

最美的太阳 2024-11-16 09:58:20

我从未使用过 struts-menu,但它对我来说似乎有点过分了。

我建议您找到一个您喜欢的菜单,然后编写一个标记文件来处理将其输出到视图层中。对我来说,这比仅使用框架或库来输出菜单要容易得多。另外,它特定于您要使用的实际菜单。您的标签可以处理安全检查,以确保用户只看到他们有权访问的内容等。

I've never used struts-menu, but it looks like overkill to me.

I would recommend that you locate a menu that you like and then write a tag file to handle outputting it in your view layer. To me, that's a lot easier than using a framework or library just to output a menu. Plus, its specific to the actual menu you want to use. Your tag can handle doing security checks to ensure that the user only sees what they have permission to access, etc.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文