You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by st...@stephan-wiesner.de on 2003/07/19 12:30:02 UTC
tiles: Comments are ignored
Hi list,
I found something weird:
<tiles:insert page="Layout.jsp" flush="true">
<tiles:put name="head" value="Kopf.jsp" />
<tiles:put name="book" value="Buch.jsp" />
<tiles:put name="foot" value="Fuss.jsp" />
<tiles:put name="author" value="Autor.jsp" />
</tiles:insert>
Works fine in a JSP. And it still works if I insert comments:
<tiles:insert page="Layout.jsp" flush="true">
<!--
<tiles:put name="head" value="Kopf.jsp" />
<tiles:put name="book" value="Buch.jsp" />
<tiles:put name="foot" value="Fuss.jsp" />
<tiles:put name="author" value="Autor.jsp" />
-->
</tiles:insert>
But not, of course, If I completely remove the body of the tiles-insert.
Caused me quite some pain when I tried to change to using tiles-defs.xml
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: tiles: Comments are ignored
Posted by Stephan Wiesner <st...@stephan-wiesner.de>.
I have to restart my application when I change a JSP? Tried it again. Even stopped the
Tomcat completely. He clearly recompiled the JSP (I can hear the hard disc work). The
comments are ignored.
I can send you a WAR file, if you want to try it yourself...
Stephan
Yann Cébron wrote:
> I'd guess you didn't reload/restart your webapplication after the first
> editing of your tiles-defs.xml.. Tiles uses Digester - and Digester surely
> does know about comments
>
> Yann
>
>
>>Hi list,
>>I found something weird:
>><tiles:insert page="Layout.jsp" flush="true">
>> <tiles:put name="head" value="Kopf.jsp" />
>> <tiles:put name="book" value="Buch.jsp" />
>> <tiles:put name="foot" value="Fuss.jsp" />
>> <tiles:put name="author" value="Autor.jsp" />
>></tiles:insert>
>>
>>Works fine in a JSP. And it still works if I insert comments:
>><tiles:insert page="Layout.jsp" flush="true">
>><!--
>> <tiles:put name="head" value="Kopf.jsp" />
>> <tiles:put name="book" value="Buch.jsp" />
>> <tiles:put name="foot" value="Fuss.jsp" />
>> <tiles:put name="author" value="Autor.jsp" />
>>-->
>></tiles:insert>
>>
>>But not, of course, If I completely remove the body of the tiles-insert.
>>Caused me quite some pain when I tried to change to using tiles-defs.xml
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: tiles: Comments are ignored
Posted by Yann C�bron <ya...@yahoo.de>.
I'd guess you didn't reload/restart your webapplication after the first
editing of your tiles-defs.xml.. Tiles uses Digester - and Digester surely
does know about comments
Yann
>
> Hi list,
> I found something weird:
> <tiles:insert page="Layout.jsp" flush="true">
> <tiles:put name="head" value="Kopf.jsp" />
> <tiles:put name="book" value="Buch.jsp" />
> <tiles:put name="foot" value="Fuss.jsp" />
> <tiles:put name="author" value="Autor.jsp" />
> </tiles:insert>
>
> Works fine in a JSP. And it still works if I insert comments:
> <tiles:insert page="Layout.jsp" flush="true">
> <!--
> <tiles:put name="head" value="Kopf.jsp" />
> <tiles:put name="book" value="Buch.jsp" />
> <tiles:put name="foot" value="Fuss.jsp" />
> <tiles:put name="author" value="Autor.jsp" />
> -->
> </tiles:insert>
>
> But not, of course, If I completely remove the body of the tiles-insert.
> Caused me quite some pain when I tried to change to using tiles-defs.xml
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org