Reputation: 334
Has somebody found a way to put a SSJS library directly on the server?
I tried to link with something like:
<xp:script clientSide="false"
src="http://something/mylib.jss">
</xp:script>
It works fine with CSJS and css but a SSJS library brings me an error allthough the path is correct.
Anybody found a solution for this?
Upvotes: 0
Views: 83
Reputation: 20384
Yes. You create an OSGi plug-in than contains your SsJS. Check Nathan Freeman's XSP toolkit on OpenNTF has a sample.
You are then deep in Java land and might decide to just stay there
Upvotes: 2