• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

To the Author!

 
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Matt,
It seems that Spring framework will be very popular in the near future. Could you please explain how Spring is better than Struts or Tapestry. Also what do you see the future holding for these frameworks?

Thanks in advance.
[ October 26, 2004: Message edited by: Mcgill Smith ]
 
Ranch Hand
Posts: 995
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First of all Spring is a lightweight container this meaning it is not focused only to solve web problems (as struts and tapestry). Indeed, one of the many features offered by Spring is intended for solving web problems. Here you can use already included Spring MVC or even more interesting to plug your preferred web framework: struts, tapestry, webwork.

./pope
 
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Ali Pope:
Here you can use already included Spring MVC or even more interesting to plug your preferred web framework: struts, tapestry, webwork.



Any idea as to how spring enables us to plug in any web application framework? The basic concept behind that would help.
 
Alexandru Popescu
Ranch Hand
Posts: 995
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The chapter 12 and 13 of the official (free) Spring documentation represents all you need to start this.

./pope
 
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is a good tutorial in serverside. Pls check this web page
 
author
Posts: 114
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


It seems that Spring framework will be very popular in the near future. Could you please explain how Spring is better than Struts or Tapestry. Also what do you see the future holding for these frameworks?



I like Spring's MVC framework because it has a very clean separation of controller and view. It also allows you to use many view technologies: JSP/JSTL, Tiles, Velocity, FreeMarker, PDF and Excel. There's also talk of adding out-of-the-box support for JasperReports.

The one think I like better about Struts is it's rich set of HTML tag libraries. However, there is
a patch in Spring's JIRA that has JSP 2.0 Tag files to make form's easier to write.

I'm doing a talk at ApacheCon that compares the different frameworks and I also plan to publish sample apps that demonstrate how to use Struts, Spring, Tapestry, WebWork and JSF with a Spring middle-tier and Hibernate backend. These apps should be available in the next couple of weeks from my Equinox project.
 
Alexandru Popescu
Ranch Hand
Posts: 995
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It is quite interesting for me how the big attention for Spring is attracted in the web application direction. I am using Spring for 2 different applications but without touching the web part .

./pope
 
Alexandru Popescu
Ranch Hand
Posts: 995
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Talking about patches I think there is one also for enabling Spring to work with Hibernate 3 (alpha) - just for the courageous ones .

./pope
 
Matt Raible
author
Posts: 114
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Talking about patches I think there is one also for enabling Spring to work with Hibernate 3 (alpha) - just for the courageous ones



Yep, the patch is in
Spring's JIRA.
 
Alexandru Popescu
Ranch Hand
Posts: 995
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Matt for the link... couldn't find it (too big list of bookmarks ).

./pope
 
Matt Raible
author
Posts: 114
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Any idea as to how spring enables us to plug in any web application framework? The basic concept behind that would help.



Spring allows easy integration with Java web frameworks by offering a

ContextLoaderListener which can be easily configured in your web.xml. This listener will load a /WEB-INF/applicationContext.xml file by default and allows you to specify the files it loads by adding a "contextConfigLocation" as a context parameter. For example:



From there, it depends on your framework. The context is stuffed into the ServletContext and you can retrieve it using:



If you have a specific framework you'd like to integrate with - let me know and I'll try to post instructions for integration.
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic