These last 2 weeks, Richard Burton and I have been working on adding JRuby support to S2. We've been successful in getting a very basic action up and running, but we're running into something of an impedance mismatch between S2 and Ruby. Some of the issues we've run into:

1. Ruby's object properties are typeless, this means that when we go to set values on ruby actions and ruby domain objects, the type conversion is useless because we can't look at the property type to figure out what to convert it to.

2. No annotations in Ruby, a lot of functionality in S2 is driven through annotations.

3. For the reasons stated in #1 and #2, it's hard to recreate the domain model on a save action so the properties can be set back onto the domain model.

For these reasons, it quickly becoming clear to me that we can't just create s2 actions in ruby. The language has too many differences with Java to really be a drop in replacement. (Groovy is much better in this regard) So the only alternative I can think of is to create a fundamentally new web framework that runs in s2, but uses Ruby as it's language. So I'm curious to see where others on the dev list see Ruby fitting into the s2 ecosystem. Should we have a rails-like framework that is pretty close to Ruby on Rails and makes an easy transition from rails? Or do we want something that diverges from the rails and provides an alternate to rails development on the JRuby platform? This is a Brave New World for struts so I think it's useful to get some ideas on where we might take this.
Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to