Just beginning to work with Mav - and struggling slightly. 

Taking this as my example, 

<view name="success" path="raw.jsp">
        <transform path="hot.jsp"/>
</view>

do I understand document transforms correctly? 

The view raw.jsp is configured to have a transform step.  If 
this view is selected by the controller,  raw.jsp is executed 
and its output placed in an application context attribute 
called "wrapper". The exact name can be set in maveric.xml' s 
configuration section for the DocumentFiewFactory class, but by 
default it is "wrapper".

Hot.jsp must contain an action or a JSTL tag to retrieve the 
contents of the "wrapper" attribute and embed it in some 
appropriate way.

The "cooked" result is then returned to the browser.

Is this how it works?


2nd Question: 

is it possible to have more than one transform step in a  
document transform? Something like:

<view name="success" path="raw.jsp">
        <transform/>
                <path>hot.jsp</path>
                <path>hoter.jsp</path>
                <path>hotest.jsp</path>
        </transform>
</view>

I think I read in Rod Johnson's book that it is possible in the 
case of XSLT transforms. Is there an example of this somewhere?

Aidan



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
[INVALID FOOTER]

Reply via email to