Resource file manager

The resource file manager allows you to add files to your solution. These files can then be programmatically accessed and used by your solution.

Adding files

To add files, click on the pink SOLUTION tab, then on Resources. Click on the File tab. You can either drag your file or click the 'Add' button. If you want to be able to access the file programattically in your solution, make sure you change the path to /script_lib before you save it. After you have updated the path, hit Save in the top left corner.

Only files added to /script_lib can be programmatically accessed by your solution. For an example, see How to add and use files.

Files that are stored in the root path '/' are accessible publicly for anyone who knows the engine url. Be careful with placing files there, especially if they contian sensitive data.

Files in a solution are not shared by other solutions, they only exist in the solution they were added to. When the solution is published, it includes all the uploaded files.

File properties

You can see the properties of a file in the resource file manager by selecting it. On the right you will see the details like the size, the name and who it was last modified by.

Editing a file's name or folder

To edit the file's name or folder select either its name in the name column or the folder name in the folder column, and then clicking it again. The field will now become editable. After you modified it, make sure you hit save in the top left corner.

Opening and editing files in an external editor

To open a file, simply select it and click open. It will open in the editor associated with file's extension. This allows you to modify the file outside of Teneo. When you save the file in the editor, Teneo will ask you if you want to upload the changes to the server:

Removing files

To delete one or more files, select them in the resource file manager and choose 'Delete'. You will get a prompt asking you if you really want to delete the file(s). You have three possible options:

  • Yes - This will delete the file.
  • No - This will cancel the delete.
  • Delete all - If you have selected multiple files, this will delete all of them without prompting you to confirm each file.

File types that get a special treatment

You can add any file to a solution, but some of them a treated specially.


Images like .png, .jpg and .gif are stored in the /images folder by default. Once the solution is published, the images can be retrieved by appending /images/[imagename].[extension] to the engine URL.

.groovy files

You can add groovy classes by storing the class as a .groovy file with the name of the class. When added to Teneo, the files' path should be set to /script_lib. Once saved, you can call the class from anywhere in the solution. (You don't have to compile the class, it will be compiled when the solution is loaded into memory).

.jar files

If the scripts in your solution need to use classes that are made available in .jar files, you can add these to the resource file manager as well. Once saved, their classes can be used anywhere in the solution. Jar files are stored in the /script_lib folder by default.

.jsp files

Java Server Pages are stored in the /views folder by default. These files can be used to format the Teneo engine response. They can be used by using the url parameter viewtype with the name of your jsp without the extension in requests to engine, like so:


Java Server Pages can make use of the Teneo engine scripting API. More details here: API's for use in JSP's.

Was this page helpful?