From: Anthony E. <ae...@si...> - 2002-03-16 12:37:37
|
FWIW, the JPublish framework supports using Jython for implementing actions (small pieces of code which are triggered when a URL is requested) through BSF and allows the Jython scripts to place objects into the Velocity context. All of the example code uses Python for the actions (I am a big fan of Python, and especially Jython). JPublish is at: http://www.jpublish.org/ Personally I am looking forward to the day when I can ditch all of my JSP code. I am really tired of having HTML and code mixed together and JSP, while you can do MVC, it is just to easy to put code in the page. Sincerely, Anthony Eden > -----Original Message----- > From: jyt...@li... > [mailto:jyt...@li...] On Behalf Of rbill > Sent: Friday, March 15, 2002 8:25 PM > To: BillWorker 2i > Cc: jyt...@li... > Subject: Re: [Jython-users] idea: custom tag library and jython > > > On Fri, 15 Mar 2002, BillWorker 2i wrote: > > Just wondering if it is a good idea! > > > > How about developing a custom tag for web apps. One that > takes jython > > scriplet in its body. The request, response, session etc would be > > available as explicit objects. The tag could embed a jython > > interpreter and execute the given code. How I wish jsp were jython > > server pages! > > BSF makes this pretty easy, but it's not ideal. Mainly > because you ruin > separation of concerns by plugging exec/evals into a jsp > mess. While I > originally liked this idea, it turns out to be a maintenance > mess! I've > been away from it a bit so I have only a little progress here, but a > better plan is to support jython classes right in MVC rigs > like velocity > (turbine), webmacro, freemarker (maybe struts, but I don't > know much about > it). This way there's not really code in templates, and > Jython classes > handle non-visual grunt work. This does more for web > development with > Jython than an exec/eval in jsp. > > > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > |