http://mav.sourceforge.net

The MVC framework that a friend and I have been working on is finally
ready for public consumption.  What's cool about Maverick can pretty
much be summed up by this snippet from a hypothetical config file:

  <command id="statistics">
    <controller type="org.infohazard.foo.controller.Stats" />

    <view id="error">
      <source-document>unavailable.xml</source-document>
      <pipeline>
        <transform src="lookAndFeel.xsl" />
      </pipeline>
    </view>

    <view id="success">
      <source-model node="stats"/>
      <pipeline>
        <transform src="statistics.xsl" />
        <transform src="lookAndFeel.xsl" />
      </pipeline>
    </view>
  </command>

This shows a command that uses a controller to perform some processing
(bean properties on the controller are automatically populated from the
request parameters) and that can return one of two defined views.  The
success view wraps the JavaBeans model obtained from the controller in
an adapter pattern which provides a DOM facade to the XSLT engine.

Key points:

. No need for intermediate templating languages like JSP or XSP to
generate XML prior to transformation.  An adapter provides a DOM
representation of an arbitrary graph of JavaBeans through reflection.

. You can define as many transformations per view as you like.

. You can stop the transformation at any point (including prior to any
transformation) and obtain the XML representation.  XSLT designers can
then work with offline content.

. You can still use traditional JSP pages just like you can with Struts,
with the model being placed in an attribute collection for use by
<jsp:useBean>.  If they generate XML, the pipeline facility is
available.

. Extensively tested with Orion :-)

This is version 0.8, the first public release.  Feedback is appreciated!

http://mav.sourceforge.net

Enjoy :-)

Jeff Schnitzer
[EMAIL PROTECTED]
Scott Hernandez
[EMAIL PROTECTED]

Reply via email to