Uploaded an updated version of the taglib library to: <https://sourceforge.net/projects/bsf4oorexx/files/Sandbox/rgf/taglibs/beta/>: added optional attribute "arguments" to control creation of arguments for script/expr, optimized multiple Rexx invocations for the same page.
Currently there have been three students applying the taglib such that it is regarded to be stable and bug free, hence also making it known to the bsf4oorexx and oorexx developer communities which may be interested in checking out this infrastructure. If interested, just read the brief information (from "readme.md") at the above download URL in order to become able to setup Tomcat 9 and write web applications using Rexx/ooRexx with Java based web servers lice Apache Tomcat 9. If you test this taglib with earlier versions of Tomcat or with other web servers like IBM WebSphere and the like, please report back! --- Here a possible JSP/RSP (Rexx server page), named "hello.jsp" (note the elements <s:script type="rexx"> and <s:expr type="rexx">): <%@ page session="false" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %> <%@ taglib uri="/WEB-INF/script-jsr223.tld" prefix="s" %> <!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <style> body { background-color: ivory; } </style> <title>Sample Application JSP Page Using Rexx Via JSR-223 (Title)</title> </head> <body> <p>Here is the text generated by a Rexx script: <br><em> <!-- note: a script can be of any size and complexity --> <s:script type="rexx"> say 'Hello, world, this is Rexx speaking at' .dateTime~new </s:script> </em> <!-- note: an expression only creates a value that gets returned and fetched --> <p>It is now exactly (using a Rexx expression):<br> <em><s:expr type="rexx">.dateTime~new~string</s:expr></em>.</p> </body> </html> and how it gets rendered in a browser: and here the pure text in case the picture does not make it: Here is the text generated by a Rexx script: /Hello, world, this is Rexx speaking at 2020-11-09T15:48:38.429000 / It is now exactly (using a Rexx expression): /2020-11-09T15:48:38.429000/. and here the generated HTML-text that gets returned by the Java based web server (Tomcat 9 in this example): <!DOCTYPE html><html><head><meta charset="UTF-8" /><style>body { background-color: ivory; } </style><title>Sample Application JSP Page Using Rexx Via JSR-223 (Title)</title></head><body><p>Here is the text generated by a Rexx script: <br><em><!-- note: a script can be of any size and complexity -->Hello, world, this is Rexx speaking at 2020-11-09T15:48:38.429000 </em><!-- note: an expression only creates a value that gets returned and fetched --><p>It is now exactly (using a Rexx expression):<br><em>2020-11-09T15:48:38.429000</em>.</p></body></html> Note: the taglib is compiled for Java 6, such that it should be usable on earlier versions of Java based web servers as well. ---rony On 29.10.2020 15:08, Rony G. Flatscher wrote: > Hi there, > > at this year's International Rexx symposium I was able to briefly demonstrate > an infrastructure with > which it becomes possible to create web applications with Rexx on Java based > web servers. > > If you point your browsers to > <https://sourceforge.net/projects/bsf4oorexx/files/Sandbox/rgf/taglibs/beta/?upload_just_completed=true> > and read through that page you will get a brief overview. The zip-archive > "demoRexx20201029.zip" > contains all the examples. > > If you want to test it for yourself, you need to download Tomcat 9 (*not* > Tomcat 10, which is still > under development), the latest version of ooRexx 5 and BSF4ooRexx. > > Although I will be off a few days, you should be able to get everything up > and running (possibly > also with WebSphere and the likes, which I had no time to look into). > > HTH, > > ---rony
_______________________________________________ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel