[opencms-dev] Re: Re: Re: Re: Re: need help: how improving opencmsperformance?

andrea cossu andrea.cossu at gruppoatlantis.com
Thu Feb 1 17:54:50 CET 2007


I resolved my problem mooving the code to another jsp that is not cached, 
and now it's all ok... and it seems a little faster.
Thanks for your support

andrea


"Christian Steinert" <christian_steinert at web.de> ha scritto nel messaggio 
news:236633464 at web.de...
> Unfortunatly the workaround you suggest doesn't work.
> I cannot use the cms include directive because in this way the new jsp is
> unable to reach some variables.
> I have to use the jsp include, and so doing i get the same working 
> condition
> as before, because the jsp in compiled before the execution, and the code 
> i
> don't want to cache is cached the same.
>
> andrea
>

Dear Andrea,

You can set and retreive request attributes, if you want to share data 
between your main template and your includes.

IIRC this would
    request.setAttribute( "<key>", <value> );
and then one of your includes could retrieve the value with
    value = (<CAST>) request.getAttribute( "<key>" );


I know that all of this is not very convenient, but the approach that I 
suggest is the only workaround that comes to my mind.


christian
_______________________________________________________________________
Viren-Scan für Ihren PC! Jetzt für jeden. Sofort, online und kostenlos.
Gleich testen! http://www.pc-sicherheit.web.de/freescan/?mc=022222


_______________________________________________
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






More information about the opencms-dev mailing list