You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Torsten Curdt <tc...@dff.st> on 2002/02/01 10:20:04 UTC
Re: XSP generated classes
> Class1 and Class2 in both then:
> MY_PAGE1_xsp.class
> MY_PAGE1_xsp$Class1.class
> MY_PAGE1_xsp$Class2.class
> and
> MY_PAGE2_xsp.class
> MY_PAGE2_xsp$Class1.class
> MY_PAGE2_xsp$Class2.class
> will get generated. Obviously *Class1.class and *Class2.class are identical
> for each page.
>
>
> The implication of this (I'm sure) must be inefficiency.
>
>
> Questions:
> ----------
> Does having many repeated (e.g. helper classes) provide a run-time
> inefficiency (i.e. in cases where that code -- for example Class1 and Class2
> -- could reside in a library)?
The trick is not to have a helper class for each xsp page but one for all
using the specific (probably static) methods.
I guess that's what you talking about - but again... this has already
been done and became a common practice. Have a look at the sources...
--
Torsten
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>