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.
Thanks Paddy
Finally I solved this by fetchingthe result and storing it in a byte array which the JSP could process. Dont have the exact code as I dont have access to it anymore. But will try to write it up and post here.
For now, my problem is resolved.