Servlets & Java Beans, GoF, MVC - Confusion


General J2EE: Servlets & Java Beans, GoF, MVC - Confusion

  1. Servlets & Java Beans, GoF, MVC - Confusion (1 messages)

    I know servlets and jdbc. I know that previously java beans were used for creating GUI components like eg: Round Buttons etc.

    Now I know that java beans do much more. What more do they do and how can I learn about that ? Can someone tell me how servlets and java beans fit together? Is there a good resource to learn that ?

    When we talk of java beans with servlets does it mean the old java beans or enterprise java beans?

    What are design patterns? How are java beans and servlets related to it ? Are design patterns specific to EJB ?

    What is GoF? and how is it related to Design patterns !?!

    Someone please clear the confusion I have.
  2. Priyanka,
    When someone talks of servlets and java beans, I guess they are talking of plain java beans and not enterprise java beans (EJBs).

    A Java Bean is a reusable software component. It can be a class, applet,application etc...


    Java beans wrt servlets/jsp is usually any java class that has set/get properties for attributes and processing methods.

    Design Patterns are problem/solution combo for frequently recurring problems in software. Patterns are not specific to EJB.
    Enterprise Java Beans specification from Sun represents the industry's best practices and patterns have been incorporated into it.

    GOF is the abbreviation for Gang of Four representing the four authors of the first book on Design Patterns published in 1995 , "Design Patterns-Elements of
    Reusable Object-Oriented Software" by Erich Gamma, Richard Helm, Ralph Johnson, and John Vlissides (The Gang of Four). This book is highly recommended for software developers (mainly OO based).

    A great place to learn more about java beans, ejb etc is Sun's Java website at

    Frankly, all of these questions could have been answered if you had just made an internet search on all the key words on Google :-) :-)

    Hope you are confused no more. Send me an email with any questions you have.

    janilsal <at>