on 06-26-2017 10:47 PM
when i am using this CDN it's working fine
<script src="https://openui5.hana.ondemand.com/resources/sap-ui-core.js" id="sap-ui-bootstrap" data-sap-ui-libs="sap.m" data-sap-ui-theme="sap_bluecrystal"> </script>
but when i am using local resource mapping through servlet its not working.showing "resource not found error"
<script src="resources/sap-ui-core.js" id="sap-ui-bootstrap" data-sap-ui-libs="sap.m" data-sap-ui-theme="sap_bluecrystal"> </script>
i know the mechanism how the servlet "ResourceServlet" is working in web.xml
can anyone please explain why the servlet is not able to load libraries and any fix for this!!!
thanks in advance!!!!!!!!
src="../resources/sap-ui-core.js" if your app is in sub folder
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i run it in webapp preview.
both "resources/sap-ui-core.js" and "./resources/sap-ui-core.js" working now.
but it failed to load the the ui components its not loading i think
when src ="resources/sap-ui-core.js" or "./resources/sap-ui-core.js"
output
when src = "https://openui5.hana.ondemand.com/1.48.2/resources/sap-ui-core.js"
output
when src = " ./resources/sap-ui-core.js"
when src = "https://openui5.hana.ondemand.com/1.48.2/resources/sap-ui-core.js"
what is your folder structure?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.