Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的项目层次结构是这样的。
ProjectName--> WebContent-->WEB-->INF-->ZUL-->XYZ-->images(Folder)+abc.zul
--> 当我想访问 abc.zul 中的图像文件夹中的图像(也在 XYZ fodler 中)时,未加载图像。我正在访问这样的图像。
图片="/images/app_icon.png"
我相信它应该是WEB-INF而不是 WEB->INF。
WEB-INF中的任何资源都只能以编程方式访问。
您可以将图像文件夹放在 WEB-INF 和 WebContent 文件夹下,以便以 image="/images/app_icon.png"的形式访问图像。
同样,这取决于您的要求和实施。