What I'd like is to use Grails to develop my application, but have it use Struts 2 under-the-covers instead of Spring MVC. As far as code differences between writing a Spring MVC Grails Controller and a Struts 2 Grails Controller - I don't think there needs to be any.

The problem I'm looking to solve is one where companies are using two web frameworks: a dynamic one (Grails) and a static one (Struts 2).

The easy solution is to use Spring MVC for the static one, but I've found Struts 2 easier to learn and use than Spring MVC. It's difficult to sell companies on using 2 web frameworks (Spring MVC/ Grails and Struts 2), so I'm hoping to experiment with getting Grails to use Struts 2. If that fails, I'll look into trying to redo my existing Struts 2 prototype with Spring MVC.

One of the main reasons I chose Struts 2 for the prototype I've done was because it allowed me to call methods with arguments from its EL. Since I see a move away from OGNL (and possibly) this feature, it makes me less inclined to use Struts 2. I may be able to see FreeMarker as an alternative (since I believe this allows it), but the tooling around FreeMarker is pretty poor, so that might be a tough sell.

Matt

On Nov 7, 2007, at 10:29 AM, Mark Menard wrote:

Hi Matt,

I was actually thinking about this recently when I saw a mention of the Wicket plugin someplace. It got me thinking. I've done a lot of work on using Groovy with Struts 2, but it has a long way to go. If there was a way
to integrate S2 with Grails that would be really interesting.

What would you see as the goals of a S2 plugin? Run S2 actions in Grails and forward to Grails views? Use a Grails controller and forward to a S2 view?
Be able to use S2 interceptors?

Personally I'm interested if I could migrate my S2 actions, that are written in Groovy already, and my views into a Grails project and have them run, then be able to start using the Grails controllers or view mixed with S2
stuff.

Mark


On 11/7/07 12:47 PM, "Matt Raible" <[EMAIL PROTECTED]> wrote:

Has anyone thought about creating a Struts 2 Plugin for Grails?
There's one for Wicket - which proves you don't have to use the
default web framework (Spring MVC).

http://grails.org/Wicket+Plugin

IMO, Grails Controllers look a lot more like Struts Actions than they
do Spring MVC. I really like the productivity Groovy gives you and
I'm impressed with Grails. I especially like it because it uses all
the same underlying technologies as AppFuse - it just simplifies things.

Thanks,

Matt

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


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



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

Reply via email to