- 17.9K All Categories
- 3.4K Industry Applications
- 3.3K Intelligent Advisor
- 62 Insurance
- 536.1K On-Premises Infrastructure
- 138.2K Analytics Software
- 38.6K Application Development Software
- 5.7K Cloud Platform
- 109.4K Database Software
- 17.5K Enterprise Manager
- 8.8K Hardware
- 71.1K Infrastructure Software
- 105.2K Integration
- 41.6K Security Software
Load a File from resource in Servlet - Webcenter Portal
I am using JDev 22.214.171.124 and working on Webcenter Portal is 126.96.36.199.0 (Bundle Patch 188.8.131.52.190115)
I am developing adf applications for wc portal in portal extension project. There are servlet and xslt file and xslt is using in servlet class with getServletContext().getResourceAsStream("resource/util/xslt/XSLT001.xslt");
there is no problem in testing, my test page is working on integrated weblogic and file is loading.
Also file is XSLT001.xslt and in PortalExtensionProject/public_html/resource/util/xslt/
But when I develop it as a shared library with PortalSharedLibrary project; file is not loading / not finding by servlet class
When we develop as a shared library extension project to webcenter portal; is resource path or something like this changing on webcenter portal for access to extension project's resources folder under public_html?
How can access this resource folder in public_html?
Is it wrong approach with getServletContext().getResourceAsStream() for access a file from servlet class in webcenter portal? How I must use it for access?
Or what is right approach for store xslt file in extension project and access it in webcenter portal ?
If you can help, I would appreciate.