-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Rony,
On 10/9/19 07:08, Rony G. Flatscher (Apache) wrote: > On 08.10.2019 21:16, André Warnier (tomcat) wrote: >> On 08.10.2019 17:11, Rony G. Flatscher (Apache) wrote: >>> Does anyone know of any tutorials that would demonstrate how to >>> use any javax.script language in JSPs instead of Java (e.g. >>> using Jython or JavaScript instead)? >>> >>> If not, any advice/hint how to realize/create such a >>> functionality (for then creating such a tutorial instead) would >>> be highly appreciated! >>> >> >> I know nothing about the subject matter, but was searching Google >> for "javax.script language jsp" and found this : >> http://wi.wu.ac.at:8002/rgf/diplomarbeiten/BakkStuff/2010/201007_Ryab enkiy/201007_Ryabenkiy_WebScripting_ApacheTomCat_TagLib.pdf >> >> >> (look around page 50). >> Does this help ? > > Yes and no! :) > > This work has been created under my supervision almost ten years > ago. :) > > The student did an exceptional job and created proof-of-concept > taglibs for BSF (Apache Bean Scripting Framework) and JSR223 (Java > scripting framework 'javax.script') (and even a proof-of-concept > javax.script implementation for ooRexx). > >> On the side, even though (or maybe because) I did not previously >> know anything about this, I found this document really impressive >> in terms of providing a terse but extremely readable background >> of the whole thing, all the way to some practical examples, all >> in less than 100 pages. And this was a bachelor's thesis. So I >> don't know if it helps you, but I enjoyed it. > *Great!* :) >> Looking up the author in Google, it doesn't seem that he really >> needs my modest plaudits though. > > :) > > --- > > Maybe I should reformulate the request in form of open questions: > > * Is there any container that supports for the page directive the > use of any javax.script language such as Jython, ooRexx, et.al.? * > Is there any official/supported taglib to allow javax.script > languages to be deployed in JSPs like demonstrated as a > proof-of-concept in Stanislav Ryabenkiy's work? Are there any > initiatives for creating such a support? * Is there any interest in > allowing Java scripting languages to be used in JSPs as > demonstrated as a proof-of-concept in Ryabenkiy's work with > PHP/Quercus, Python/Jython and ooRexx? > > ---rony > > P.S.: My request stems from the expectation that by now > javax.script languages are fully supported in JSPs, which may not > be the case at all judging from the answers so far. > > P.P.S.: <http://wi.wu.ac.at/rgf/diplomarbeiten/> would list all > sorts of student's work that might be interesting or of help for > others (like the above mentioned Bachelor thesis). My own (particularly uninformed) opinion is that most scripting languages that have wanted to get into JVMs/app servers have simply built their own technologies to handle everything, so it doesn't run through JSP itself. For example, Lucee[1] is a CFML implementation in Java, but it doesn't (always) use JSP. They have a separate "interpreter" for it instead of building huge tag libraries to fit it into JSP. (I say "interpreted" because I don't know if they actually interpret the files each time on demand, or if there is a compilation step at some point. It doesn't really matter either way.) I haven't looked at it in depth, but I believe this is also what Apache JGroovy[2] does. - -chris [1] https://lucee.org/ [2] https://groovy-lang.org/ -----BEGIN PGP SIGNATURE----- Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl2ePvcACgkQHPApP6U8 pFjuVw//YHtKewJlqmJWTG4raTCOyXMCJLpCcdrkfkWADXsNncVgdY6vPn0csy0d 7eFYLC9oo6XqnLPJDmHZusRiFCcCTNaQTqJts1tvwWnTi79+eR8tupyWCfD9UQGR Ozkil81G1ABtv81ILGbMjiiXVWgiXZERE7i7PMhrR++zR/T1CiC/FTA3q+kDsTtd 6lKzrsXmjoovDts69czovZulO4jMz7A53Ejs8L3Cubx+CO7UIRyH21pEY9CkvfgW DhBjpiSiVNuixoMLHLQakuarxvSFY7+u7s9kollu4JbLalplDc4wgZx7DEn6SGzo i0QZsGPnybkKHMnTUDTOuFozPFYkCuWccJ+SiP+VaEv6B5IlPg53Kq5SfvpcAS5l Tslu/a9yI27AXCmawkD8uX7cFk/B0hK3QBHAWfu4WbvGEvZZjg5QQY4ztHNL4KyC eBBayPpw0z6hf/sP28YjCEPt4s/Z1tqY1UDFKn3zcbiou8j85PsKmwcdC3tpwkLE q3zqTcGStAU9lp41cnT4XXohnjJ0UKFae6ZE+f/TIDbkusc+ToKFEw2Xo3VbImBN 3Qvi1CHIfPMYMzgYBsmddfnWlJwZcfyfhvSXuajI5ogqeZfRJ7aa/HvU101Irzek BEu6A/FZG6woIlkRJ4wVrtddyds1MpCWq31F7XG7WiTzzV8pFH8= =i23J -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org