Title: Question on view node in maverick.xml

Since a “type” attribute was not specified for the transform node, it uses the default transform type.  I’m assuming that it’s “document”.

 

What will happen is that the output of welcome.jsp is converted to a String and placed in the request attributes with the key “wrapped”.  Then trimOutside.jsp is executed and written to the output.

 

Yes, in some ways this is like tiles, but it’s a lot simpler.  If you like tiles, use it.  I don’t.

 

Keep in mind that this is only one type of transform... others include XSL, DVSL, FOP, Perl, or anything you care to write, and you can chain them together.

 

Jeff Schnitzer

[EMAIL PROTECTED]

 

-----Original Message-----
From: Thompson, Kris [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 6:46 AM
To: [EMAIL PROTECTED]
Subject: [Mav-user] Question on view node in maverick.xml

 

                <command name="welcome">
                        <view path="welcome.jsp">
                                <transform path="trimOutside.jsp"/>
                        </view>
                </command>

I don't understand what the transform piece does in the view node above.  It seems to act like tiles sort of, if this is true then is there any reason to use the above syntax instead of tiles itself?

Thanks

Kris Thompson
www-frameworks-boulder.org

Reply via email to