JSP 中类似 Facelets 的模板

发布于 2025-01-05 00:13:58 字数 383 浏览 4 评论 0原文

如何在没有 Facelets 的情况下在 JSF+JSP 中实现模板?

我的布局页面中有一个左侧菜单和一个用于中心内容的 ,两者都包含在

中布局.jsp。当单击左侧菜单中的 时,将提交页面并调用该操作来设置 中使用的核心托管bean 属性。,但这不起作用,因为我遇到了诸如范围重置之类的错误。

对此的任何帮助和想法都非常感谢。

How to implement templating in JSF+JSP without Facelets?

I have a left menu and a <jsp:include> for the center content in my layout page, both are contained within a <form> in the layout.jsp. When the <h:commandLink> in the left menu is clicked, then the page is submited and the action is called to set the coresponding managedbean property used within the <jsp:include>, but this doesn't work as I run into errors like my scope getting resetted.

Any help and thoughts on this is highly appreciated.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文