Robert, "Robert Bynum" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Does anyone know if Cache will let you use the OnPreHTTP method in a custom > tag and how? I am running Cache 5.0.1 > Here is the code in my CSR file: > > <csr:rule name="MyCustomTag" match="MyCustomTag"> > <csr:action> > <csr:default> > > <script language=cache method="OnPreHTTP" returntype="%Boolean"> > s ^Log=$h > </script> > > </csr:default> > </csr:action> > </csr:rule>
What you are doing is mixing compile-time and run-time stuff. The "<csr:action>" is 'translated' to run-time (while rendering html) actions, while the <script...> is a compile-time thing, it instructs the compiler to create a OnPreHTTP method in the class. It is possible to create methods in rules using runat="compiler" in the action tag, but I do not have a exemple at hand right now. (maybe in a couple of days). I can remember the docs explaining some of it. Herman By the way: this is the kind of stuff Gertjan Klein and I are addressing in our Antwerp presentation (just a little advertising can't hurt ;-))
