I have a java application deployed in weblogic where in I have a requirement for which I need to download a JS file in java class and save it in some location. Later when a particular JSP file is loaded the previously downloaded JS file should be accessible to this JSP. How can i achieve this?
I am not sure how to or which location I should save the file so that it would be accessible both in the JSP and java files.
My application uses JSON and due to other constraints I am not able to pass the JS file as byte array.
It's not so difficult. For example you may create folder in the root of file system (or prefer other location) and fix it in your code or application environment, change access mode of this folder to resolve write\read access for user under which weblogic is running. Then you can work with this folder from application deployed in weblogic as well as from normal standalone application.