小编oll*_*llo的帖子

读取JSF应用程序中的资源文件

我需要在JSF应用程序中获取资源文件.

InputStream input = new FileInputStream("filename.xml");
Run Code Online (Sandbox Code Playgroud)

但是,系统找不到filename.xml与sample.xhtml网页位于同一文件夹中的文件.我怎么得到InputStream它?

resources jsf inputstream file

3
推荐指数
1
解决办法
2886
查看次数

标签 统计

file ×1

inputstream ×1

jsf ×1

resources ×1