user2316219
user2316219

Reputation: 334

Put SSJS directly on the server instead of the database

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

Answers (1)

stwissel
stwissel

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

Related Questions