Chris,

On 18 Feb 2021, at 0:59, Christopher Schultz wrote:

Weird; I never saw the OP on the list, only Rony's reply.

Weird indeed. I just posted to users@tomcat.apache.org, but maybe because it was my first post it was held back for a while?

Usually if you want to use server-side JavaScript, you use something like Node.js instead of a servlet container. Why not use Node?

If you'd really like to use Tomcat, you will need to write a Servlet that establishes a JavaScript environment (e.g. Nashhorn), provides all the plumbing for the servlet-container provided resources (e.g. request, response, streams, session, etc.) as well as error-handling, etc.

It's a big job.

Well, that’s why I asked whether somebody has ‘done’ it for Nashorn/JavaSCript in the same way as it is done for Jython/Python (https://jython.readthedocs.io/en/latest/SimpleWebApps/).

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to