【问题标题】:Included jsp variable access包含jsp变量访问
【发布时间】:2016-03-27 21:45:28
【问题描述】:

根据附加图像,我有一个名为 (Index.jsp) 的主 jsp 页面,并且我在其中包含另一个名为 (Menu.jsp) 的 jsp 文件。

<jsp:include page="menu.jsp" flush="true"></jsp:include>

在应用程序开始时,我为 Menu.jsp 设置了一些变量值,我需要在 Index.jsp 中访问这些值。

有什么办法可以做到吗?

【问题讨论】:

标签: java jsp jakarta-ee


【解决方案1】:

我建议阅读更多关于 JSP 页面中请求范围的信息。您可以在这里找到类似问题的答案: How to pass parameter to jsp:include via c:set? What are the scopes of the variables in JSP?

【讨论】:

    猜你喜欢
    • 2011-12-03
    • 1970-01-01
    • 2012-07-06
    • 2012-05-05
    • 1970-01-01
    • 1970-01-01
    • 2013-10-25
    • 2018-03-02
    • 2023-04-06
    相关资源
    最近更新 更多