[opencms-dev] status of struts integration & Maverik?
Kenneth Lewelling
klewelling at curoalemanz.com
Fri Jan 31 06:00:20 CET 2003
Eelco ,
Thank you for your interest. I am still working on Struts integration, but
have been slowed down due to additional workload at work. I should start
making more updates to CVS here within the next week. I am not sure how long
the project will take, but I want to try and get something usable out within
the next month.
I am pretty new to OpenCms as well so will have to muck around in the code a
lot. I will be happy to share any incite I have with you. Once I have a
better idea about what exactly needs to be done I would certainly like to
have your help.
Kenneth Lewelling
<http://opencmsstruts.sourceforge.net/>
-----Original Message-----
From: owner-opencms-dev at www.opencms.org
[mailto:owner-opencms-dev at www.opencms.org]On Behalf Of Eelco Hillenius
Sent: Thursday, January 30, 2003 5:48 PM
To: klewelling at curoalemanz.com; opencms-dev at www.opencms.org
Subject: [opencms-dev] status of struts integration & Maverik?
Hi,
Stupid me. I did not discover the list archives until an hour ago. There I
caught the Thread about integrating with Struts. That would be perfect! I
was wondering what the status of struts integration is right now.
I just begun building a site in OpenCMS. For this I do want to use JSP's,
ideally with something like struts. Right now, the template mechanism is not
very handy for a JSP approach, as you end up doing a lot of include's in
every page. Struts/ Tiles- like would be much nicer, AND would attract tons
of other programmers to OpenCMS.
Personally, I am very charmed with the mechanism that Maverik
(<http://mav.sourceforge.net>) provides for doing template stuff. For
example:
<command name="index">
<view path="body.jsp">
<transform>
<path value="layout.jsp"/>
</transform>
</view>
</command>
Would be a configuration node (note that this works with a default command/
action... otherwise use something like <controller
class="com.bar.foo.Query"/> inside the command node). Body in this case does
not have to know anything about the layout of the rest of the page. After
body.jsp is loaded, layout.jsp could contain something like:
<tr>
<td width="100%">
<c:import url="/header.jsp" />
</td>
</tr>
<tr valign="top" height="100%">
<td>
<%-- BODY --%>
<c:out value="${wrapped}" escapeXml="false"/>
</td>
</tr>
<tr>
<td width="100%">
<c:import url="/footer.jsp" />
</td>
</tr>
Where the last page (body.jsp) is exposed as variable 'wrapped'. This is an
example of what they call a document transform. A transform can have
multiple steps, and can be of different kinds of transform (like XSLT).
Ok. I would die to get struts/ maverik/ (other?) integrated in OpenCms. I am
willing to put considerable effort in it as well, I am just too green with
OpenCms to have a clear idea how to implement it.
Kenneth Lewelling: could you give a hint of the status of your try? I did
not find any (new) code in CVS, but maybe I am missing something?
Cheers,
Eelco Hillenius
More information about the opencms-dev
mailing list