Importing an entire JavaScript library into a database

If you want to import JavaScript and/or CSS files from a library like Bootstrap or JQuery Mobile (or any other file) into your application you can do so in the Resources section. Problem is that such libraries probably rely on a fixed (relative) folder structure. Although you can also create that in the Resources section I find it to be quite a hassle.

Luckily there is a whole lot easier and faster solution:

  • Open the Package Explorer
  • Drag the entire folder you would like to import from your computer to the WebContent folder.
  • Done!

The files and folders you imported can now be referenced using a URL that’s relative to the root of the application/ database.

 

6 thoughts to “Importing an entire JavaScript library into a database”

Comments are closed.