From: <nik...@va...> - 2001-03-21 15:40:08
|
Hi all, first of all (since I'm new to the list) I want to say thanks a lot for Jython; it's been extremely useful to me. Next, to the questions. (I'm sorry if some of this might be off-topic = for this list; but I figured it concerned Jython enough to include it.) = Here goes: 1. [see also (3)] Has anyone successfully used Jython in JSP? I recently discovered the BSF-taglib from jakarta.apache.org, but that was quite limited in = comparison with the ideal of exchanging the native Java for scripting with e.g. = Jython. (I've considered PSP, but it's a little off-standard, and seems unattended..?) 2. [Might be off-topic] When running two servlets -- compiled from Jython-sources -- in two different contexts under Tomcat, I run into problems. Tomcat cannot = find the second servlet, unless I put its classes (regular + inner) in the same context (i.e. in the same (WEB-INF/classes). At first, I thought it was = due to the "inner class"; but it seems that I have to move both in order = for the servlet to be found. This does not seem to happen to regular = Java-servlets though, which is why I wonder if it's a Jython-problem. My question here is really if someone else has had any problems = like this and has a suggestion at hand; otherwise, I will do some more = tracking of the problem to see what I might have overlooked. 3. [This is definitely off-topic in essence, but in practise, it might = well touch the roles of Jython (e.g. in JSP)] This is a somewhat controversial subject. In Webware's PSP (webware.sourceforge.net), there is an option to use braces instead of indentation. This strikes me as a very good solution when embedding Python-code into "output" (text, HTML, XML etc). Therefore I wonder, = since scripting capabilities in e.g. JSP and XSP (Cocoon) are likely to = follow "standard procedures of incorporation" (whatever that is), will Jython = (and Python) ever have this option? I would not like to see it anywhere else = than when embedding, but just there it makes sense. Maybe this is more up to = the implementation of the "server page to code" interpreter though..(such = as in Webware's PSP)? best regards Niklas Lindstr=F6m |