You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Peter Shipley <ps...@nomensa.com> on 2004/10/13 12:05:10 UTC
Using show-time
Hi folks,
I was wondering if someone could point me in the right direction in order to use
show-time in web.xml
I uncommented it but saw nothing. Is their a step I am missing ?
Regards
Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Using show-time
Posted by Jorg Heymans <jh...@domek.be>.
Actually the comment above the parameter states exactly what i just
skillfully grepped from the source.
I need to go to sleep really ...
Jorg Heymans wrote:
>
> Peter Shipley wrote:
>
>> Hi folks,
>>
>> I was wondering if someone could point me in the right direction in
>> order to use show-time in web.xml
>
>
> I didn't even know that parameter existed :-)
>
>>
>> I uncommented it but saw nothing. Is their a step I am missing ?
>
> hmmm ... line 1157 to 1173 in CocoonServlet.java seems to indicate that
> the functionality is supported
>
> Looking at line 449 there is also
>
> this.showTime = BooleanUtils.toBoolean(value) || (this.hiddenShowTime =
> "hide".equals(value));
>
> which indicates that this parameter needs a boolean value. So your
> solution would be to set the value in web.xml to "true" rather than
> "show". As the comment in web.xml says, you will often be getting
> invalid content length warnings. For me, it only worked the first time
> you request a page.
>
> Note that page rendering times can also be retrieved from the access.log
> in WEB-INF/logs
>
> Regards
> Jorg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Using show-time
Posted by Jorg Heymans <jh...@domek.be>.
Peter Shipley wrote:
> Hi folks,
>
> I was wondering if someone could point me in the right direction in
> order to use show-time in web.xml
I didn't even know that parameter existed :-)
>
> I uncommented it but saw nothing. Is their a step I am missing ?
hmmm ... line 1157 to 1173 in CocoonServlet.java seems to indicate that
the functionality is supported
Looking at line 449 there is also
this.showTime = BooleanUtils.toBoolean(value) || (this.hiddenShowTime =
"hide".equals(value));
which indicates that this parameter needs a boolean value. So your
solution would be to set the value in web.xml to "true" rather than
"show". As the comment in web.xml says, you will often be getting
invalid content length warnings. For me, it only worked the first time
you request a page.
Note that page rendering times can also be retrieved from the access.log
in WEB-INF/logs
Regards
Jorg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org