• 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:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

defination for the struts frame work

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
what is the main diff between frame work and libraries
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A framework guides you how to do things, most usually following a set of intefaces. A library only provides you with new fonctionality.
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I usually associate frameworks with "inversion of control" or IoC. With no framework you might write code that controls a sequence of steps from beginning to end. A framework might sequence the work, perform some generic steps itself and call you to perform application specific steps. You'll often see this done through abstract classes:

This is also known as The Hollywood Method or "don't call us, we'll call you" because you wait for the framework to invoke your methods. If you Google for "inversion of control" you'll find it mixed in with "dependency injection" which is a different thing. They can be used together or separately but don't let them confuse you.

IoC isn't the only way to spot a framework and abstract classes are not the only way to make do IoC happen, but they often go together.

You mentioned Struts in the subject line. Can you see where Struts takes control of the process and calls you to do parts of the work?
[ March 15, 2007: Message edited by: Stan James ]
 
please buy this thing and then I get a fat cut of the action:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic