Sorry, I just got back from a lengthy vacation (I miss Bali already!).
Answers below:

> From: Aidan Mark Humphreys [mailto:[EMAIL PROTECTED]
> 
> 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?


Yes, that is how it works, but the default attribute is named "wrapped".


> 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?


Yes, just use multiple <transform> elements like this:

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


Look in the friendbook-domify example application.  It's in the
opt-domify package.




-------------------------------------------------------
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