[opencms-dev] status of struts integration & Maverik?
Eelco Hillenius
eelco.hillenius at topicus.nl
Fri Jan 31 00:48:25 CET 2003
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20030131/704c973d/attachment.htm>
More information about the opencms-dev
mailing list