Re: [Resin-interest] On the subject of JSP compilation...
John Steel wrote: I've been using this pattern for some time with excellent results: % if (user == null) { % %@ include file=/jsp/loginpanel.jsp % % } else { % %@ include file=/jsp/logoutpanel.jsp % % } % I'm curious how this affects performance. In once sense, the assembled jsp is being changed each visit. So is it rebuilt each time? What gets cached? It is much less complicated than you are imagining. %@ include % is a static compilation, means that effectively /jsp/loginpanel.jsp and /log/logoutpanel.jsp are cut and paste into your main JSP before it is compiled. There is no caching or recompiling or anything, anymore than the following code would be recompiled or cached specially: % if (user == null) { %Red% } else { %Blue% } % -- Serge Knystautas Lokitech software . strategy . design http://www.lokitech.com p. 301.656.5501 e. [EMAIL PROTECTED] ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] On the subject of JSP compilation...
I've been using this pattern for some time with excellent results: % if (user == null) { % %@ include file=/jsp/loginpanel.jsp % % } else { % %@ include file=/jsp/logoutpanel.jsp % % } % I'm curious how this affects performance. In once sense, the assembled jsp is being changed each visit. So is it rebuilt each time? What gets cached? -- -- http://www.phonewebcam.com [EMAIL PROTECTED] ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] On the subject of JSP compilation...
John, check out resin's work directory for the source of the resulting class to which your jsp becomes. On Jun 1, 2007, at 3:35 AM, John Steel wrote: I've been using this pattern for some time with excellent results: % if (user == null) { % %@ include file=/jsp/loginpanel.jsp % % } else { % %@ include file=/jsp/logoutpanel.jsp % % } % I'm curious how this affects performance. In once sense, the assembled jsp is being changed each visit. So is it rebuilt each time? What gets cached? -- -- http://www.phonewebcam.com [EMAIL PROTECTED] ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest