[opencms-dev] Struts Tiles Integration

Thomas Göttlich guo.tuomi at googlemail.com
Thu May 6 08:53:29 CEST 2010


Well, I already tried

<tiles:insertTemplate template="<cms:link>Test.jsp</cms:link>" />

which resulted in a message like "Could not find resource
/opencms/WEB-INF/jsp/online/.../Test.jsp"

Using your version results in a 500 error without anything being written to
any log (neither JBoss/Console nor OpenCMS) - might be a problem with tiles
logging setup.


Regards,

Thomas


2010/5/5 Stephan Hartmann <hartmann at metamesh.de>

> You could try this:
>
> <c:set var="myTemplate"><cms:link>Test.jsp</cms:link></c:set>
> <tiles:insertTemplate template="${myTemplate}" />
>
> regards,
> Stephan
>
> Am 5. Mai 2010 17:06 schrieb Thomas Göttlich <guo.tuomi at googlemail.com>:
>
>> Hi,
>>
>> we currently are using OpenCMS with Struts2.
>>
>> However, Tiles doesn't work (yet).
>>
>> I set up tiles and tested with the following in a JSP:
>>
>> <tiles:insertTemplate template="Test.jsp" />
>>
>> However, Tiles reports it can't find the file "Test.jsp", which makes
>> sense since the file only exists in the VFS so far and Tiles needs to read
>> them from the RFS.
>>
>> So I guess I first need to tell OpenCMS to export/update the file from VFS
>> before Tiles can find it.
>>
>>
>> Does anyone have experience with integration Tiles into OpenCMS?
>>
>> Or any suggestions?
>>
>>
>> Thanks in advance,
>>
>> Thomas
>>
>>
>> _______________________________________________
>> This mail is sent to you from the opencms-dev mailing list
>> To change your list options, or to unsubscribe from the list, please visit
>> http://lists.opencms.org/mailman/listinfo/opencms-dev
>>
>
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20100506/f858360c/attachment.htm>


More information about the opencms-dev mailing list