Re: Struts and Sun's J2EE Patterns
I've started a new piece about building a Strut's application from scratch. I'm now thinking about how to work the J2EE patterns into what I started. The work in progress is at http://husted.com/about/struts under Coming Soon. Any notes or ideas people might have about this would be appreciated. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel 716 737-3463. -- http://www.husted.com/about/struts/
Re: Struts and Sun's J2EE Patterns
Ted, Sounds good. Let me know once you've started to incorporate the patterns and I'll have a look. Thanks, -dm Ted Husted wrote: I've started a new piece about building a Strut's application from scratch. I'm now thinking about how to work the J2EE patterns into what I started. The work in progress is at http://husted.com/about/struts under Coming Soon. Any notes or ideas people might have about this would be appreciated. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel 716 737-3463. -- http://www.husted.com/about/struts/ -- Dan MalksSun Java Center Enterprise Java Architect703.208.5794
Re: Struts and Sun's J2EE Patterns
Hi Craig, Craig R. McClanahan wrote: On Fri, 16 Mar 2001, Dan Malks wrote: [snip] In fact, I've gotten some emails recently asking me to write a paper about the relationship of an existing framework and the Patterns. Describing the synergy between Struts and the J2EE Patterns might be an interesting example of the decomposition of a specific framework into some of the component patterns from which it is composed. Craig, any interest in working together on something like this? (I'm too busy at the moment too, but maybe sometime in the not so distant future ;-) Anyway, not sure if this would be of interest to the community at large, but I think it might be... Thanks, Dan I would be interested in working on something like this. The next three weeks are totally impossible (I'm speaking at both O'Reilly Enterprise Java Conference and ApacheCon, and have some real work to get done along the way :-), but would have a little time to talk about this in April. Thanks, Dan Craig April's come and gone and I've been too busy to even think about writing something, as I imagine you have been. At the same time, would you like to discuss an outline at some point, so we can consider doing this? Let me know what you think. Thanks, Dan -- Dan MalksSun Java Center Enterprise Java Architect703.208.5794 Craig -- Dan MalksSun Java Center Enterprise Java Architect703.208.5794
RE: Struts and Sun's J2EE Patterns
Are my postings not reaching the list? I'm sure I posted an informational on this subject over a week ago! Philip Hart -Original Message- From: Jorge Ribeiro Jordo [mailto:[EMAIL PROTECTED]] Sent: 14 March 2001 18:51 To: '[EMAIL PROTECTED]' Subject: Struts and Sun's J2EE Patterns Has anybody read Sun Java Center J2EE Patterns (http://developer.java.sun.com/developer/technicalArticles/J2EE/patterns/) yet ? For those that did, it seemed that Struts is pretty much an implementation of the "Front Controller" pattern (no surprises so far), using the "ServletFront", "Command and Controller", "Multiplexed Resource Mapping" and "Dispatcher in Controller" stategies. What do you think ? -- This message may contain confidential information or privileged material, and is intended only for the individual(s) named. If you are not in the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.
RE: Struts and Sun's J2EE Patterns
Phil, I'm an inconsistent reader of this list, so I'm not sure. Are my postings not reaching the list? I'm sure I posted an informational on this subject over a week ago! But thanks for doing so and we welcome your feedback. Pls feel free to email me directly or use the aliases provided with the patterns catalog to do so. I'd very much like to hear your impressions. Take care, Dan Philip Hart -Original Message- From: Jorge Ribeiro Jordo [mailto:[EMAIL PROTECTED]] Sent: 14 March 2001 18:51 To: '[EMAIL PROTECTED]' Subject: Struts and Sun's J2EE Patterns Has anybody read Sun Java Center J2EE Patterns (http://developer.java.sun.com/developer/technicalArticles/J2EE/patterns/) yet ? For those that did, it seemed that Struts is pretty much an implementation of the "Front Controller" pattern (no surprises so far), using the "ServletFront", "Command and Controller", "Multiplexed Resource Mapping" and "Dispatcher in Controller" stategies. What do you think ? -- This message may contain confidential information or privileged material, and is intended only for the individual(s) named. If you are not in the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. Dan MalksSun Java Center Enterprise Java Architect703.208.5794
Re: Struts and Sun's J2EE Patterns
Jorge, Just catching up some email. Jorge Ribeiro Jordo wrote: Has anybody read Sun Java Center J2EE Patterns (http://developer.java.sun.com/developer/technicalArticles/J2EE/patterns/) yet ? For those that did, it seemed that Struts is pretty much an implementation of the "Front Controller" pattern (no surprises so far), using the "ServletFront", "Command and Controller", "Multiplexed Resource Mapping" and "Dispatcher in Controller" stategies. You've done an excellent job of understanding this pattern and describing the aspects of Struts it describes! The one minor clarification is about the 'Dispatcher in Controller' strategy. While I'm not a Struts expert, I believe that Struts uses a separate mapping mechanism that sits outside of the controller servlet, does it not? If the controller is delegating to an external component in order to do view mgmt (ie:choosing the view) and navigation (ie:actually dispatching to that view) then I probably wouldn't describe it as using the 'Dispatcher in Controller' strategy. This strategy is meant to describe more simplistic cases where the controller inlines the work itself, for example if it just grabs a string and a requestDispatcher instance and forwards things on their way. See the 'solution' section of the 'Service to Worker' pattern for a bit more discussion on this issue. 'Service to Worker' is a pattern that combines a couple other "smaller" patterns in the catalog into a larger one. Let me know if I got anything wrong wrt to the discussion of Struts in this email :-) I'm interested in any other comments on this issue (or others related to any of the Pattern material in the above URL - pls feel free to email the provided aliases, if you'd like to discuss outside of this list). Thanks, Dan What do you think ? -- This message may contain confidential information or privileged material, and is intended only for the individual(s) named. If you are not in the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -- Dan MalksSun Java Center Enterprise Java Architect703.208.5794
Re: Struts and Sun's J2EE Patterns
On Fri, 16 Mar 2001, Dan Malks wrote: I understand and welcome your feedback once you've had a chance to have a look. Jorge's initial comment is interesting, given the fact that as Ralph Johnson, Doug Schmidt, and Mohamed Fayad state in 'Building Application Frameworks', Wiley 1999 "Patterns are the architectural elements of frameworks.". I agree with this sentiment, and it is good to see this relationship between the Struts Framework and the J2EE Patterns catalog. In fact, I've gotten some emails recently asking me to write a paper about the relationship of an existing framework and the Patterns. Describing the synergy between Struts and the J2EE Patterns might be an interesting example of the decomposition of a specific framework into some of the component patterns from which it is composed. Craig, any interest in working together on something like this? (I'm too busy at the moment too, but maybe sometime in the not so distant future ;-) Anyway, not sure if this would be of interest to the community at large, but I think it might be... Thanks, Dan I would be interested in working on something like this. The next three weeks are totally impossible (I'm speaking at both O'Reilly Enterprise Java Conference and ApacheCon, and have some "real work" to get done along the way :-), but would have a little time to talk about this in April. Thanks, Dan Craig -- Dan MalksSun Java Center Enterprise Java Architect703.208.5794 Craig
Struts and Sun's J2EE Patterns
Has anybody read Sun Java Center J2EE Patterns (http://developer.java.sun.com/developer/technicalArticles/J2EE/patterns/) yet ? For those that did, it seemed that Struts is pretty much an implementation of the "Front Controller" pattern (no surprises so far), using the "ServletFront", "Command and Controller", "Multiplexed Resource Mapping" and "Dispatcher in Controller" stategies. What do you think ? -- This message may contain confidential information or privileged material, and is intended only for the individual(s) named. If you are not in the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.