Re: Struts 2 Plugin for Grails?

2008-02-06 Thread interz12
Hi, Does anyone out there actually have a struts2 app running under a grails project? We have a large app (mainly struts1 actions) but running in struts2 with the s1 plugin and are trying to get it to run under grails. The app boots up as a spring bean, but struts1 actions fail and error with

Re: Struts 2 Plugin for Grails?

2008-02-06 Thread Antonio Petrelli
Please don't hijack this thread, create a new one, but at the Struts Users mailing list: http://struts.apache.org/mail.html Antonio 2008/2/6, interz12 [EMAIL PROTECTED]: Hi, Does anyone out there actually have a struts2 app running under a grails project? We have a large app (mainly struts1

Re: Rendering JSP templates from the classpath (Re: Struts 2 Plugin for Grails?)

2007-11-26 Thread Brian Pontarelli
I think it would be feasible to pull the engine out and use it and then attempt to put it back in. The key would be that at the end of the road the next JSP specification dictates a pluggable JSP engine and an API/configuration for plugging them in. Anyone have any experience with Jasper?

Re: Struts 2 CodeBehind/SmartURLs (was Re: Struts 2 Plugin for Grails?)

2007-11-23 Thread Ted Husted
On Nov 21, 2007 5:14 AM, Ted Husted [EMAIL PROTECTED] wrote: * Other aspects of the framework might be open to convention-based or annotation-based binding too, such as type converters. I see now that XWork already has annotations for type converters *

Re: Struts 2 CodeBehind/SmartURLs (was Re: Struts 2 Plugin for Grails?)

2007-11-21 Thread Ted Husted
On Nov 20, 2007 7:11 PM, Brian Pontarelli [EMAIL PROTECTED] wrote: I thought that this was not really the same. You couldn't map multiple actions to a class or handle more different methods for actions. I haven't looked at the codebehind in a long time, since I've been using SmartURLs for 6

Re: Struts 2 Plugin for Grails?

2007-11-21 Thread Brian Pontarelli
Well, I was planning on checking out the next JSR, but jcp.org is down. I'll check back later. If anyone from Sun is on this list, might want to email the folks that manage that site and let them know it is toast right now. -bp mraible wrote: I don't think their implementation would be

Re: Struts 2 Plugin for Grails?

2007-11-21 Thread Dave Newton
Works on My Machine (tm) --- Brian Pontarelli [EMAIL PROTECTED] wrote: Well, I was planning on checking out the next JSR, but jcp.org is down. I'll check back later. If anyone from Sun is on this list, might want to email the folks that manage that site and let them know it is toast

Rendering JSP templates from the classpath (Re: Struts 2 Plugin for Grails?)

2007-11-21 Thread Ted Husted
Would it be feasible to use Jasper 2 instead? Historically, it seems that the specifications that were based on a working technology have been more successful than speculative specifications. I think everyone involved in the process agrees that it's much cleaner to create a standard around

Struts 2 CodeBehind/SmartURLs (was Re: Struts 2 Plugin for Grails?)

2007-11-20 Thread Ted Husted
Basically, we're still trying to identify what merging SmartURLs into CodeBehind means. I just backported a SmartURLs application to the Struts 2.x CodeBehind/Zero-Config. I wasn't using any Action annotations, so I didn't miss that feature. Otherwise, I had to * change the syntax of the

Re: Struts 2 Plugin for Grails?

2007-11-20 Thread Piero Sartini
Am Montag, 19. November 2007 18:55:43 schrieb Brian Pontarelli: Hopefully that helps clear things up somewhat. If not, feel free to ask more questions. Thanks for your detailed answer, I do understand the issues with JSP much better now. Oh, and as for your upcoming development around

Re: Struts 2 CodeBehind/SmartURLs (was Re: Struts 2 Plugin for Grails?)

2007-11-20 Thread Brian Pontarelli
Here are my thoughts: AFAICT, the questions then become * Which Result annotation syntax to support? ** CB uses a .class reference, SU uses a string setting that corresponds to the Result name. ** CB uses value where SU uses location. SU because it provides more flexibility with

Re: Struts 2 Plugin for Grails?

2007-11-20 Thread Brian Pontarelli
Piero Sartini wrote: Am Montag, 19. November 2007 18:55:43 schrieb Brian Pontarelli: Hopefully that helps clear things up somewhat. If not, feel free to ask more questions. Thanks for your detailed answer, I do understand the issues with JSP much better now. Excellent! Oh, and

Re: Struts 2 Plugin for Grails?

2007-11-20 Thread mraible
] -- View this message in context: http://www.nabble.com/Struts-2-Plugin-for-Grails--tf4766264.html#a13860894 Sent from the Struts - Dev mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Struts 2 Plugin for Grails?

2007-11-20 Thread Ted Husted
On Nov 20, 2007 11:57 AM, mraible [EMAIL PROTECTED] wrote: The best thing is to probably see what's on tap for JSP 2.2 and see if we can get it on the EG's radar. Matt If Matt's client were willing to contribute the IP, another way to proceed would be to open source a proof of concept for the

Re: Struts 2 Plugin for Grails?

2007-11-20 Thread mraible
: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Struts-2-Plugin-for-Grails--tf4766264.html#a13862901 Sent from the Struts - Dev mailing list archive at Nabble.com. - To unsubscribe, e-mail

Re: Struts 2 CodeBehind/SmartURLs (was Re: Struts 2 Plugin for Grails?)

2007-11-20 Thread Dave Newton
--- Don Brown wrote: On 11/20/07, Brian Pontarelli wrote: * Should we leverage the action.packages configuration or a naming convention for finding action packages? (I prefer convention) I'm not so sure about this one. Would we do something like stripes where we scan for the

Re: Struts 2 CodeBehind/SmartURLs (was Re: Struts 2 Plugin for Grails?)

2007-11-20 Thread Don Brown
On 11/20/07, Brian Pontarelli [EMAIL PROTECTED] wrote: Here are my thoughts: AFAICT, the questions then become * Which Result annotation syntax to support? ** CB uses a .class reference, SU uses a string setting that corresponds to the Result name. ** CB uses value where SU

Re: Struts 2 CodeBehind/SmartURLs (was Re: Struts 2 Plugin for Grails?)

2007-11-20 Thread Don Brown
On 11/20/07, Dave Newton [EMAIL PROTECTED] wrote: I'd think that package-level annotations should go in the package-info.java; that's what it's for, more or less. Perfect! I didn't know about that class, hence my hacky workarounds. Let's definitely use it. Don d.

Re: Struts 2 CodeBehind/SmartURLs (was Re: Struts 2 Plugin for Grails?)

2007-11-20 Thread Brian Pontarelli
I prefer type safety wherever possible, but the annotation should probably support both for the rresult type. As for value vs location, value is more convenient since you can just do: @Result(/foo.jsp) for results that use the default result type, and as mentioned, location isn't the param

Re: Struts 2 Plugin for Grails?

2007-11-19 Thread Tom Schneider
For those interested, Mark and I have been collaborating on a proof of concept for this idea. Details are here: http://cwiki.apache.org/confluence/display/S2PLUGINS/Grails+Plugin We have a simple precompiled groovy controller and GSP up and running. On Nov 13, 2007 10:38 PM, Vinny [EMAIL

Re: Struts 2 Plugin for Grails?

2007-11-19 Thread Musachy Barroso
Yep. I fall into that category. How else can you build reusable components in Struts2? I'm still waiting for the JSP spec is fixed to support everything from JAR files or modules and make JSP usable outside J2EE container contexts is that ever going to happen? (I really hope so) musachy

Re: Struts 2 Plugin for Grails?

2007-11-19 Thread Brian Pontarelli
Musachy Barroso wrote: Yep. I fall into that category. How else can you build reusable components in Struts2? I'm still waiting for the JSP spec is fixed to support everything from JAR files or modules and make JSP usable outside J2EE container contexts is that ever going to happen? (I

Re: Struts 2 Plugin for Grails?

2007-11-19 Thread Jim Cushing
This is precisely why I like things like Freemarker and Velocity: You don't have to wait for the JCP to propose and ratify a standard, and for the vendors to adopt it. I hope that Struts 2 continues to strongly support Freemarker. In fact, I wish they promoted it as the preferred choice.

Re: Struts 2 Plugin for Grails?

2007-11-19 Thread Piero Sartini
Am Freitag, 16. November 2007 23:04:37 schrieb Brian Pontarelli: Yep. I fall into that category. How else can you build reusable components in Struts2? Could you please explain why this does not work in s2? I need to build such an application and was under the impression that it will work with

Re: Struts 2 Plugin for Grails?

2007-11-19 Thread Brian Pontarelli
Piero Sartini wrote: Am Freitag, 16. November 2007 23:04:37 schrieb Brian Pontarelli: Yep. I fall into that category. How else can you build reusable components in Struts2? Could you please explain why this does not work in s2? I need to build such an application and was under the

Re: Struts 2 Plugin for Grails?

2007-11-19 Thread Martin Cooper
On Nov 19, 2007 9:55 AM, Brian Pontarelli [EMAIL PROTECTED] wrote: huge-snip/ I'd even go one step further and abstract out JSPs so that they didn't require a container and provide a javax package to access and use them outside of containers. Good luck with this part. ;-) I went down that

Re: Struts 2 Plugin for Grails?

2007-11-19 Thread Ted Husted
On Nov 19, 2007 11:39 AM, Jim Cushing [EMAIL PROTECTED] wrote: I hope that Struts 2 continues to strongly support Freemarker. In fact, I wish they promoted it as the preferred choice. FreeMarker is cool, but I'm still a die-hard Velocity fan :) Here's the thing: If we started using FreeMarker

Re: Struts 2 Plugin for Grails?

2007-11-19 Thread mraible
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Struts-2-Plugin-for-Grails--tf4766264.html#a13851330 Sent from the Struts - Dev mailing list archive at Nabble.com

Re: Struts 2 Plugin for Grails?

2007-11-19 Thread Ted Husted
Has anyone tried encapsulating Jasper behind a standalone servlet and have it load the JSP template independently of the container (a la Freemarker and Velocity) but not independently of the servlet API (which would be the second biggest upgrade to the spec). -Ted. On Nov 19, 2007 8:06 PM,

Re: Struts 2 Plugin for Grails?

2007-11-16 Thread Ted Husted
On Nov 13, 2007 9:00 AM, Tom Schneider [EMAIL PROTECTED] wrote: And who says that Struts 2 devs recommend Freemarker? I sure don't. :) Tom It's true that there are quite a few hardcore Struts 2 teams that use FreeMarker or Velocity (for good reason). But, the Apache Struts Project group

Re: Struts 2 Plugin for Grails?

2007-11-16 Thread Brian Pontarelli
Ted Husted wrote: On Nov 13, 2007 9:00 AM, Tom Schneider [EMAIL PROTECTED] wrote: And who says that Struts 2 devs recommend Freemarker? I sure don't. :) Tom It's true that there are quite a few hardcore Struts 2 teams that use FreeMarker or Velocity (for good reason). But, the Apache

Re: Struts 2 Plugin for Grails?

2007-11-13 Thread Tom Schneider
Just for completeness I'd think we'd want a GSPResult. Just because it's slow now, doesn't mean it will be slow in the future. (Look at how slow freemarker was before we tweaked it) Also, for those looking to migrate over, if GSP isn't supported, that might be a issue for existing grails

Re: Struts 2 Plugin for Grails?

2007-11-13 Thread Vinny
My unsolicited 2 cents. The idea of integrating Grails scaffolding with Struts 2 has been bouncing in my head for few weeks now. The Grails CRUD is a true sweet spot for me but Struts still excels when it's time to move beyond a CRUD Action. Getting the 2 frameworks working together would be

Re: Struts 2 Plugin for Grails?

2007-11-12 Thread Matt Raible
I don't know if we'd really need to support GSPResult in a Struts 2 Plugin. AFAIK, the slowest part of Grails is GSP. http://tinyurl.com/2298jh If we were to write a plugin, would it implement the same scaffolding that Grails has by default? If so, it might be better to use FreeMarker since that

Re: Struts 2 Plugin for Grails?

2007-11-11 Thread Tom Schneider
Mark, I was reading Getting Started With Grails this weekend and the more I look at Grails, the more I see your Groovy Works effort fitting into a Grails mini-porting effort to Struts 2. Much of what you describe is already in Grails and I think the last thing we need is yet another groovy

Re: Struts 2 Plugin for Grails?

2007-11-11 Thread Mark Menard
On 11/11/07 5:07 PM, Tom Schneider [EMAIL PROTECTED] wrote: Mark, I was reading Getting Started With Grails this weekend and the more I look at Grails, the more I see your Groovy Works effort fitting into a Grails mini-porting effort to Struts 2. Much of what you describe is already in

Re: Struts 2 Plugin for Grails?

2007-11-11 Thread Tom Schneider
See my comments below: Mark Menard wrote: On 11/11/07 5:07 PM, Tom Schneider [EMAIL PROTECTED] wrote I will agree with you, and I've decided I'm done reinventing wheels. So, I'm game. I'm very pressed for time, but I'm definitely interested in this. I think a bridge from Java based Struts 2

Re: Struts 2 Plugin for Grails?

2007-11-07 Thread Mark Menard
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

Struts 2 Plugin for Grails?

2007-11-07 Thread Matt Raible
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

Re: Struts 2 Plugin for Grails?

2007-11-07 Thread Matt Raible
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

Re: Struts 2 Plugin for Grails?

2007-11-07 Thread Tom Schneider
much overlap between what the SWF XML does and what the XWork XML does. Tom On 11/7/07, 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

Re: Struts 2 Plugin for Grails?

2007-11-07 Thread Tom Schneider
How are http://code.google.com/p/s2ss/ and http://code.google.com/p/groovyworks/ different? Looking at the code they look very similar. I've been trying to make sure the Plugin Registry is up to date and has all the plugins that are available, so I'm wondering if these are 2 separate entries, or

Re: Struts 2 Plugin for Grails?

2007-11-07 Thread Mark Menard
On 11/7/07 1:38 PM, Matt Raible [EMAIL PROTECTED] wrote: 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

Re: Struts 2 Plugin for Grails?

2007-11-07 Thread Mark Menard
On 11/7/07 2:58 PM, Tom Schneider [EMAIL PROTECTED] wrote: How are http://code.google.com/p/s2ss/ and http://code.google.com/p/groovyworks/ different? Looking at the code they look very similar. I've been trying to make sure the Plugin Registry is up to date and has all the plugins that are

Re: Struts 2 Plugin for Grails?

2007-11-07 Thread Don Brown
On 11/8/07, Matt Raible [EMAIL PROTECTED] wrote: 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