Re: Using Spring 2.0 - should I use Struts 1.2.9, 1.3.5, or 2.0?
At 11:16 AM -0500 10/5/06, Paul Benedict wrote: I use Spring 2.0 with Struts 1.3.5, and employ the legacy RequestProcessor because Spring supports auto-wiring action classes with it. That's an invaluable feature to me. So, then (as expected), Paul's experience demonstrates that it "works" -- the point is mostly that whatever future changes happen in Struts 1.3, you can expect that gradually some things may be documented as working which wouldn't work in this case. We can certainly try to point out those cases, but the goal is for the request processor to be invisible to most users, so it will be a challenge to balance clarity with completeness. (Isn't it always ;-) ) Also note that it is entirely possible to set up custom commands and introduce them into the Struts 1.3.x request processing chain that do what the Spring autowiring request processor does. It's a little more awkward than I'd like to add in custom commands, but we have done it on a half-dozen apps already. We probably won't add that Spring integration code to Struts 1.3.x since we don't otherwise have a Spring dependency. I don't know if the Spring team has given any consideration to adding it to the Spring distribution now that we've made a GA release. But I'd personally be happy to respond to questions about it as much as I see them. (My bandwidth for monitoring the Struts lists has been unfortunately low for a few months, but I try to at least scan subject lines...) Joe Paul Bruno Melloni wrote: I decided to use Spring 2.0 with Struts for my next project. But I can't find info on the highest version of Struts that I can use with it. This is what I found: - Spring 2.0 comes with some parts of Struts 1.2.9, so it would be the "safe bet". - The latest Struts 1.x is 1.3.5. It seems to have done significant repackaging, but I am not clear whether it is "supposed to be" backward compatible to 1.2.9 or not. - Struts 2.0 is out, but from what I read it is quite different from 1.x, and makes me doubt that it would be compatible with something that was built for 1.2.9. I also heard that it still has a few bugs... normal for a software version ".0". Can someone bring some light into this darkness? --- On a separate but related question... RAD 6 comes with Struts 1.1 (hopelessly outdated). Can it be upgraded to a more recent Struts version? If yes, it is probably documented somewhere, could you point me to the docs? Of course, it might be something as simple as including the desired version of struts in the WEB-INF/lib folder and ignoring the version that came with RAD 6. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Joe Germuska [EMAIL PROTECTED] * http://blog.germuska.com "The truth is that we learned from João forever to be out of tune." -- Caetano Veloso - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using Spring 2.0 - should I use Struts 1.2.9, 1.3.5, or 2.0?
I use Spring 2.0 with Struts 1.3.5, and employ the legacy RequestProcessor because Spring supports auto-wiring action classes with it. That's an invaluable feature to me. Paul Bruno Melloni wrote: I decided to use Spring 2.0 with Struts for my next project. But I can't find info on the highest version of Struts that I can use with it. This is what I found: - Spring 2.0 comes with some parts of Struts 1.2.9, so it would be the "safe bet". - The latest Struts 1.x is 1.3.5. It seems to have done significant repackaging, but I am not clear whether it is "supposed to be" backward compatible to 1.2.9 or not. - Struts 2.0 is out, but from what I read it is quite different from 1.x, and makes me doubt that it would be compatible with something that was built for 1.2.9. I also heard that it still has a few bugs... normal for a software version ".0". Can someone bring some light into this darkness? --- On a separate but related question... RAD 6 comes with Struts 1.1 (hopelessly outdated). Can it be upgraded to a more recent Struts version? If yes, it is probably documented somewhere, could you point me to the docs? Of course, it might be something as simple as including the desired version of struts in the WEB-INF/lib folder and ignoring the version that came with RAD 6. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using Spring 2.0 - should I use Struts 1.2.9, 1.3.5, or 2.0?
On 10/5/06 10:59 AM, "Bruno Melloni" <[EMAIL PROTECTED]> wrote: > So, although I suspect that the answer is yes, I am afraid that the > question remains: Are Struts 2.0 and Spring 2.0 compatible? I'm using Spring 2 and Struts 2 currently. They seem to work together fine. The Spring team has worked to keep Spring 2 compatible with Spring 1. Take care, Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using Spring 2.0 - should I use Struts 1.2.9, 1.3.5, or 2.0?
I've tried Spring 2.0 with Struts 2.0 as well, and can say it works fine, thanks to the great backwards-compatibility work done by the Spring time. As Joe said, Spring has code to support Struts 1.x, but Struts 2.0 has code to support Spring, interestingly enough. As for not having a GA release, it is definitely something we are working on and will hopefully have in the next few months. Don On 10/5/06, Ian Roughley <[EMAIL PROTECTED]> wrote: I've used webwork 2.2.2 (the predecessor to s2) with Spring 2.0 without issues. Hence, I will take the plunge and say that s2 and spring 2.0 are compatible. /Ian Bruno Melloni wrote: > Thanks, I just downloaded and looked at Struts 2. Seems like a nice > version, but I noticed it is not listed yet as a General Availability > release (just for early adopters). Also, according to its dependencies > documentation (struts-2.0.0/docs/dependencies.html), it is designed for > Spring 1.2.8 not 2.0. I hope 2.0.1 will deal with those two issues. > > So, although I suspect that the answer is yes, I am afraid that the > question remains: Are Struts 2.0 and Spring 2.0 compatible? > > Bruno > > -Original Message- > From: Mark Menard [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 05, 2006 9:35 AM > To: Struts Users Mailing List > Subject: Re: Using Spring 2.0 - should I use Struts 1.2.9, 1.3.5, or > 2.0? > > On 10/5/06 10:20 AM, "Bruno Melloni" <[EMAIL PROTECTED]> wrote: > > >> - Struts 2.0 is out, but from what I read it is quite different from >> 1.x, and makes me doubt that it would be compatible with something >> that was built for 1.2.9. I also heard that it still has a few >> > bugs... > >> normal for a software version ".0". >> > > I can't speak to the 1.X series, but Struts 2 has integration with > Spring baked in. I'm doing a project right now with it, using Spring to > instantiate and wire all of my action beans. It's very nice. > > Take care, > > Mark > > - > 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using Spring 2.0 - should I use Struts 1.2.9, 1.3.5, or 2.0?
I've used webwork 2.2.2 (the predecessor to s2) with Spring 2.0 without issues. Hence, I will take the plunge and say that s2 and spring 2.0 are compatible. /Ian Bruno Melloni wrote: Thanks, I just downloaded and looked at Struts 2. Seems like a nice version, but I noticed it is not listed yet as a General Availability release (just for early adopters). Also, according to its dependencies documentation (struts-2.0.0/docs/dependencies.html), it is designed for Spring 1.2.8 not 2.0. I hope 2.0.1 will deal with those two issues. So, although I suspect that the answer is yes, I am afraid that the question remains: Are Struts 2.0 and Spring 2.0 compatible? Bruno -Original Message- From: Mark Menard [mailto:[EMAIL PROTECTED] Sent: Thursday, October 05, 2006 9:35 AM To: Struts Users Mailing List Subject: Re: Using Spring 2.0 - should I use Struts 1.2.9, 1.3.5, or 2.0? On 10/5/06 10:20 AM, "Bruno Melloni" <[EMAIL PROTECTED]> wrote: - Struts 2.0 is out, but from what I read it is quite different from 1.x, and makes me doubt that it would be compatible with something that was built for 1.2.9. I also heard that it still has a few bugs... normal for a software version ".0". I can't speak to the 1.X series, but Struts 2 has integration with Spring baked in. I'm doing a project right now with it, using Spring to instantiate and wire all of my action beans. It's very nice. Take care, Mark - 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]
RE: Using Spring 2.0 - should I use Struts 1.2.9, 1.3.5, or 2.0?
Thanks, I just downloaded and looked at Struts 2. Seems like a nice version, but I noticed it is not listed yet as a General Availability release (just for early adopters). Also, according to its dependencies documentation (struts-2.0.0/docs/dependencies.html), it is designed for Spring 1.2.8 not 2.0. I hope 2.0.1 will deal with those two issues. So, although I suspect that the answer is yes, I am afraid that the question remains: Are Struts 2.0 and Spring 2.0 compatible? Bruno -Original Message- From: Mark Menard [mailto:[EMAIL PROTECTED] Sent: Thursday, October 05, 2006 9:35 AM To: Struts Users Mailing List Subject: Re: Using Spring 2.0 - should I use Struts 1.2.9, 1.3.5, or 2.0? On 10/5/06 10:20 AM, "Bruno Melloni" <[EMAIL PROTECTED]> wrote: > - Struts 2.0 is out, but from what I read it is quite different from > 1.x, and makes me doubt that it would be compatible with something > that was built for 1.2.9. I also heard that it still has a few bugs... > normal for a software version ".0". I can't speak to the 1.X series, but Struts 2 has integration with Spring baked in. I'm doing a project right now with it, using Spring to instantiate and wire all of my action beans. It's very nice. Take care, Mark - 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]
Re: Using Spring 2.0 - should I use Struts 1.2.9, 1.3.5, or 2.0?
I have not spent much time with Spring 2.0, but I doubt that the issues at hand are substantially different than with Spring 1.x. Struts 1.3.x is backwards compatible with Struts 1.2.x in most important ways (there's a Wiki page detailing issues.) However, depending on what parts of Spring's struts-integration libraries you use, you may find that certain Struts 1.3 features are not available or do not behave as expected. Specifically, Spring 1.x provides a custom implementation of the Struts Request Processor. You can use Struts and Spring together without using it, but if you choose to use it, you must understand the issues I'm going to try to explain here. Struts 1.3 attempted a substantial refactoring of request processing so that custom functionality would be more easily integrated without running into the limitations of Java single-inheritance. People found that they wanted behavior that was implemented in two different custom Request Processors (usually the TilesRequestProcessor and something else) and had to wrestle with how to achieve that. Those of us who wanted to write reusable extensions to the request processing cycle had to consider extending both the TilesRequestProcessor and the base RequestProcessor, and if someone wanted to put in even more customizations, this quickly becomes totally unworkable. If you use Spring's custom request processors in Struts 1.3.x, you will lose some new functionality which is only implemented in commands which are part of the new ComposableRequestProcessor's command chain. This mostly has to do with other uses of the commons-chain integration (like per-action and per-forward command execution), but also a little bit with the exception handling, where Struts now handles exceptions a little better when they occur in the midst of tiles. Struts 2.0 doesn't even use the same RequestProcessor, and I'm sure that the Spring folks haven't tried to write integration code with either Struts 1.3.x or Struts 2.0 since they've only recently seen full releases. Joe At 9:20 AM -0500 10/5/06, Bruno Melloni wrote: I decided to use Spring 2.0 with Struts for my next project. But I can't find info on the highest version of Struts that I can use with it. This is what I found: - Spring 2.0 comes with some parts of Struts 1.2.9, so it would be the "safe bet". - The latest Struts 1.x is 1.3.5. It seems to have done significant repackaging, but I am not clear whether it is "supposed to be" backward compatible to 1.2.9 or not. - Struts 2.0 is out, but from what I read it is quite different from 1.x, and makes me doubt that it would be compatible with something that was built for 1.2.9. I also heard that it still has a few bugs... normal for a software version ".0". Can someone bring some light into this darkness? --- On a separate but related question... RAD 6 comes with Struts 1.1 (hopelessly outdated). Can it be upgraded to a more recent Struts version? If yes, it is probably documented somewhere, could you point me to the docs? Of course, it might be something as simple as including the desired version of struts in the WEB-INF/lib folder and ignoring the version that came with RAD 6. Thanks. -- Joe Germuska [EMAIL PROTECTED] * http://blog.germuska.com "The truth is that we learned from João forever to be out of tune." -- Caetano Veloso - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using Spring 2.0 - should I use Struts 1.2.9, 1.3.5, or 2.0?
On 10/5/06 10:20 AM, "Bruno Melloni" <[EMAIL PROTECTED]> wrote: > - Struts 2.0 is out, but from what I read it is quite different from > 1.x, and makes me doubt that it would be compatible with something that > was built for 1.2.9. I also heard that it still has a few bugs... > normal for a software version ".0". I can't speak to the 1.X series, but Struts 2 has integration with Spring baked in. I'm doing a project right now with it, using Spring to instantiate and wire all of my action beans. It's very nice. Take care, Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]