We did/do have BSF/JavaScript Actions for Struts 1. I had been thinking of bringing that forward for Struts 2, but there's always something else going on :) You might want to look there for inspiration:
* http://struts.apache.org/1.3.8/struts-scripting/index.html Going back to your original post. As to #1, the type issue, I'd try a Struts 1 approach. Use only String properties on the Action. Try replacing the default interceptor with one that doesn't try to do conversion, but sets everything as if it were a String. Hopefully, JRuby can take it from there. Alternatively, there's also the notion of first gathering the input into a Map in a base Action, and then converting from Map to an object with properties. This could even be a useful strategy for some Java implementations and make use of a marker interface, like MapAware. As to #2, we haven't had annotations that long, and I don't think it's been anyone's intention to make Struts 2 an annotation-dependent framework. What is that we can suddenly do with annotations that can't be done with XML descriptors? Moreover, while there might not be annotations in Ruby (yet), could there be annotations in JRuby? Overall, I wouldn't overlook the idea of JRuby for Struts 1, Java's most popular web framework, based on what we already have in the Struts 1 BSF extension (thanks Don!). I'd also emphasize the need for JRuby to play nice with JPA. I haven't done any work with Groovy, but the same suggestion would hold. Though I see at least someone has tried it: * http://www.curious-creature.org/2007/03/25/persistence-made-easy-with-groovy-and-jpa/ -Ted. On Dec 2, 2007 5:33 PM, Tom Schneider <[EMAIL PROTECTED]> wrote: > No Martin, that's a valid question. Is there a need for JRuby in S2? > I'm not really the person driving this initiative, it's Richard Burton > with assistance from Charles Nutter (one of the JRuby core developers). > I just provided some S2 technical expertise for them. However, since > Sun employs 2 of the core JRuby developers, I don't think it's going > away any time soon. I think originally we thought we could write S2 > actions in JRuby. Since that didn't work out so well, the question > becomes: 'Now what?' > Tom --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]