The Source for Java Technology Collaboration
User: Password:



Erik Hatcher

Erik Hatcher's Blog

Scripting language support

Posted by erikhatcher on June 12, 2003 at 01:01 PM | Comments (3)

Follow up to the scripting languages JSR-223... I must emphasize my dissatisfaction with the web-only nature of the scripting language support initiative. One of the biggest issues I have with JSP is that it is intimately tied to the HTTP request and response. Velocity comes to the rescue (and I'm sure there are other alternatives - please add them to the comments below). Once upon a time the Velocity team even considered submitting it as a JSR.

To the JSR-223 team: please consider broadening the design to allow for scripting hooks in plain ol' J2SE - this will allow us to have a standard way to do things like the following:

  • Send templated e-mails (something which we've used Velocity for)
  • Generating static templated files, such as a static HTML view of my personal blog (again, I'm using Velocity currently).
  • Custom code generators. Stuart Halloway has a code generation example using JSP in his wonderful book, and I suspect he did it this way to keep to pure out-of-the-box Java rather than introducing a third-party tool like Velocity. His example required he run the code generator in a web browser, and cut and paste the results to their final destination.
  • I'd like to see more integration with scripting languages to control business rules, allowing run-time flexibility.
  • And much more, I'm sure (leave your uses scripting within Java in the comments below)


Bookmark blog post: del.icio.us del.icio.us Digg Digg DZone DZone Furl Furl Reddit Reddit
Comments
Comments are listed in date ascending order (oldest first) | Post Comment

  • You said it!
    Indeed! In our latest project, we've used WebMacro (similar to Velocity) to format e-mails, generate Java and C++ code, and generate documentation in addition to web pages. Restricting JSR223 to web-tier scripting would be missing a big opportunity.

    Posted by: briangoetz on June 15, 2003 at 01:06 AM

  • Keeping My Fingers Crossed
    I sent email to the JSR expert group about this and asked them to support a scripting framework similar to the Bean Scripting Framework in J2SE. This would make it easier for the Zend group to plug in PHP support. Currently PERL, JavaScript, NetRexx, and Jython are supported. It would make it possible to script both client-side Swing code, and server code.

    Posted by: phidias on June 15, 2003 at 07:06 PM

  • wow power leveling
    wow powerleveling
    wow power leveling
    wow gold
    wow items
    feelingame.com
    wow tips
    Most Valuable WOW Power Leveling Service
    wow power leveling faq
    cheap wow power leveling
    wow power leveling
    wow powerleveling
    wow power lvl

    Posted by: wowpower on December 11, 2007 at 11:20 PM





Powered by
Movable Type 3.01D
 Feed java.net RSS Feeds