gpt4 book ai didi

java - 一个包含文件可以调用另一个包含文件的函数吗?

转载 作者:行者123 更新时间:2023-11-30 09:58:37 25 4
gpt4 key购买 nike

我刚开始使用 jsp。
场景是 所有 jsp 页面总是包含文件A。其中一些页面需要调用包含文件 B 中的函数。我的问题是,我可以从 include file B 中的函数调用 include file A 中的函数吗?

维基百科说:

It is as if the contents of the included file were pasted directly into the original file.


这让我觉得这是允许的,尽管我不确定这是否是一种好的做法。

最佳答案

是的,您绝对可以从包含文件 B 调用包含文件 A 中的函数。

您可能希望考虑使用 EL/JSTL 而不是 scriptlet。

关于java - 一个包含文件可以调用另一个包含文件的函数吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/756551/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com