Discussions

News: WebMacro 0.94 released

  1. WebMacro 0.94 released (4 messages)

    WebMacro 0.94 was released today.

    WebMacro's creation several years ago led to a radical shift in the way people develop Java servlets. Several competing versions have popped up since then, based on the same model, and WebMacro itself continues going strong.

    The idea behind WebMacro is that everyone should own their own work. A page designer should be able to create the look, feel, and flow of a site without requiring help from an application programmer. An application programmer should be able to implement functionality without having to trip over HTML codes. And a core developer should be able to implement an object model representing a business's core functionality without dealing with either the servlet API or HTML.

    Essentially this is a Model/View/Controller approach to servlet design. Since WebMacro's initial release a few years ago lots of people have talked about MVC for servelts--but few systems actually implement a pure MVC environment. JSP certainly doesn't, providing you the tools to enforce an MVC design on yourself, but offering no language support for the concept.

    In WebMacro the model component is a set of JavaBeans. WebMacro can automatically instantiate JavaBeans on a template, introspect them, and analyze them so that they can be used on a page as-is, with no additional effort required on the part of a bean developer.

    The view component is a template. It contains some simple script codes to enable repeating blocks, conditional inclusion, pulling in external URLs and so forth. No programmatic logic is allowed or possible inside the view.

    Finally, the controller is the servlet itself: it's responsible for managing the session, working out which view to return, and performing session management tasks like reporting and tracking.

    WebMacro 0.94 has been a long time coming but it adds a lot on top of this model. WebMacro is now a completely pluggable framework, which loads all of its core components from a configuration file. Thus you can change how templates are loaded, what syntax is available within a page, how templates are parsed, and most everything else.

    Also new in recent versions of WebMacro are context tools. A ContextTool allows you to automatically instantiate a Java bean on a template. Back end programmers then provide a set of beans which front-end template developers can use at will.

    This gives the template designers the freedom to create the pages they want, and the back end developers the freedom to write pure Java code. Everybody gets to own their own work.

    Threaded Messages (4)

  2. WebMacro 0.94 released[ Go to top ]

    I would just like to mention another open-source MVC framework, based on Servlets and JSPs : Struts. Struts is part of the Jakarta project, which already gave us Tomcat. I've been able to use it successfully with an EJB-based application, and it's really great.

    JB.
  3. WebMacro 0.94 released[ Go to top ]

    These kind of packages are proliferating!

    My own package, Tapestry is also worth looking at.

    Tapestry has a bunch of nifty features:
    * Component object model allows for clean re-use
    * Framework handles "nitty gritty" of building and interpreting URLs
    * Complete seperation of view (HTML template) and controller.
    * Easy localization (just provided localized HTML templates).
    * Construction of complicated pages from simple components.
    * Construction of components from other components.
    * Tons of documentation (Javadoc and PDF).
    * Very robust exception handling.
    * Great intergration with J2EE frameworks, especially EJBs.

    ... and I could go on.
  4. WebMacro 0.94 released[ Go to top ]

    And this just goes on and on, as well. At BEA, you can download and use BEA WebLogic Commerce Server / Personalization Server which gives you all of the same functionality along with portals, portlets, a robust b2c development model, a webflow and pipeline structure, and integration with Interwoven / Documentum -- all built on top of an MVC architecture that is reusable.

    Also, you can take a look at IBM's Commerce Server, although I don't know the current state of that product.
  5. WebMacro 0.94 released[ Go to top ]

    Hi,
    Is any one currently using web macro's for a development project????, is there any kind of user group that can be contacted with the implementation of web macro's as front end?????

    thanks for ur time
    Bhargav