Hi Chris, On 02.03.2021 17:48, Christopher Schultz wrote: > Rony, > > On 2/28/21 11:33, Rony G. Flatscher (Apache) wrote: >> Leo, >> >> On 26.02.2021 01:52, leo wrote: >>> On 25 Feb 2021, at 2:47, Rony G. Flatscher (Apache) wrote: >>> >>>> P.S.: Have tested my implementation with Nashorn on Java 8 and it works >>>> out of the box! Still, you >>>> would need to test the implementation thoroughly yourself (stability, >>>> performance, resources) and >>>> would be asked to come back with feedback on each of these qualities. So >>>> stay tuned, will >>>> publish a >>>> link to the implementation with a proper Nashorn/JavaScript sample war in >>>> this mail thread in a >>>> few >>>> days. >>> >>> How cool is this! Let me know when you it ready, please. Thanks a lot! >> >> O.K., had a few things I could finalize. Created two war files, >> "demoJavaScript.war" and >> "demoRhino.war". The first got tested against Nashorn, the second - you >> guessed it ;) - against >> Rhino (7.1.13). They are meant as little proof-of-concepts that should help >> you to get up and >> running with them. >> >> Please note that the libraries are beta, though appear to be stable. Yet, >> there may be >> errors/problems in them or there may be changes coming up. >> >> If you have feedback of any sorts, please come forward (stability, >> usability, performance, >> resources, etc.). >> >> Basically you just need to go to [1] and get the two war-files (copy to >> $CATALINA_HOME/webapps) plus >> either javax.ScriptTagLibs.jar (for Tomcat 9 or earlier) or >> jakarta.ScriptTagLibs.jar (for Tomcat >> 10) which you should copy to the shared directory at $CATALINA_HOME/lib and >> restart Tomcat to get >> them recognized. If you want to test with Rhino you should follow the >> directions at [1] and copy the >> mentioned two rhino jar files to the shared library directory as well. >> >> In general you should take the time and look over that page at [1], I tried >> to remain as brief as >> possible. :) >> >> Also please do not forget that the target audience of [1] has been so far >> the Rexx community and my >> BA students who learned programming using ooRexx in a semester and with that >> knowledge should now >> become able to create little web sites for their own purposes and maybe with >> some experience for >> small businesses/organizations given the information at [1] as a starting >> point. >> >> Of course, if there are any questions please do not hesitate and please ask >> them! > > Any source available?
Sure, sorry forgot to point that out explicitly! You can get at it either in the ScriptTagLibs jar files from [1] (yes, in this case I have the source and also the tld files in the jar for completeness as well) or from [2] with the appropriate checkout strings given in the upper half. Also, the license is AL 2.0, of course (dual licensed with the CPL 1.0 license in addition which the ooRexx project uses). Please note: currently the state is beta, it is functional and appears to be stable. A request: if you see something questionable, improvable or missing, please be so kind and let me know! There is certainly room for improvements, especially through the eyes of an Tomcat/Servlet expert like yourself! :) E.g., it would be nice to put the tld files into the jar and allow the JSPs to refer to them without the need to copy them to WEB-INF as is possible with the STL ; if I knew how to do that, I would do it as it improves usability (ran out of time to research that specific feature). ---rony [1] Beta directory for the ScriptTagLibs and demo war files for ooRexx, Nashorn, Rhino, source included in the jar files: <https://sourceforge.net/projects/bsf4oorexx/files/Sandbox/rgf/taglibs/beta/>. Please note: "demoRexx.war" demonstrates all attributes and in addition has two utility samples, one injecting the implicit JSP objects and the current values of the getter methods, which might be helpful when developing or debugging a webapp. [2] dev directory for the ScriptTagLibs: <https://sourceforge.net/p/bsf4oorexx/code/HEAD/tree/sandbox/rgf/taglibs/> Please note: the dev subdirectories have Windows cmd-files for creating the jar files, if you create Unix versions of them, please share (just did not have the time to create the appropriate shell scripts, an item on the todo list)! :) In essence the bsf and jsr223 are identical except for the compile attribute which is only available for the JSR-223. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org