From: Sean Blakey <pythonista@gm...> - 2005-10-06 16:00:33
On 10/6/05, Romain Zente <rzente@...> wrote:
> Hello everybody,
> just a simple question to know if it's possible to use Struts framewor=
> with jython?
> Tanks for your answers
Yes, I have a project where most of the Struts actions are in Jython.
Essentially, I adapted PyServlet into JythonAction, a Struts action
that will look up a Jython script from a file based on the URL and
invoke it in an embedded Jython runtime. Then, it's a simple matter of
setting up the URLs in struts-config.xml to point to JythonAction.
If you want, I can dig out a copy of the JythonAction from this
project and send it around.
Saint of Mild Amusement, Evil Genius, Big Geek
quine =3D ['print "quine =3D",quine,"; exec(quine)"'] ; exec(quine)