Overview
Previously you have used JSTools (JST) to load the Java classes in pre/post script activity step. You want to know if it is possible to use JSTools API to load the Java classes in a JSP page (in a javascript function), when the JSP page is outside the SBM_HOME folder. If yes, an example with JST usage and API documentation of JST is needed.
Solution
The solution is documented in the BizLogic API documentation, in the JSTools class' documentation.
As per the documentation, the loadClass method can be used to load a class from a script that can talk to BizLogic API.
The second overload of the method takes as a parameter the absolute path where the class should be loaded from:
public java.lang.Class loadClass(java.lang.String className, java.lang.String path) throws java.lang.ClassNotFoundException
We don't have any sample application to demo its usage.
Note: The BizLogic API documentation is available in your local installation under the folder
SBM_HOME\docs\api\BizLogicAPI (open index-all.html),
and within that folder you can find the JSTools documentation under
SBM_HOME\docs\api\BizLogicAPI\com\savvion\sbm\bizlogic\server\JSTools.html