I'm afraid that the AOLserver 4.0 core doesn't support custom ADP parsers.
About a year ago there was some discussion of adding this capability back in
for AOLserver 4.1, but I don't think anything was decided.  If this
capability was available in the core, I'm sure the ASP-style parser could be
updated easily enough (e.g. _ns_asp_puts looks like AOLserver 4.0's
ns_adp_append to me).

On the other hand, you could probably implement this functionality in Tcl as
a filter.

Jamie


On Wed, 11 Aug 2004 19:33:48 -0400, Vince Ciganik <[EMAIL PROTECTED]> wrote:

>Has anyone tried to get the asp style ADP parser originally written in
>like 1999 or 2000 by some guys at AM Computers working with Aolserver
>4?  The source file was nsAspStyleAdps.c.  It allowed conditional code
>throughout the file separated by the <% %> sequence, in the manner of
>ASP.  It compiles and works fine up through 3.5, but doesn't work well
>with Aolserver 4.  Now, you'll have to forgive my ignorance here, but
>after doing a little research (just enough to be dangerous actually), I
>believe it has something to do with the default (or global?) tcl
>interpreter being returned in versions of Aolserver prior to 4 but not
>anymore.  I would like to get us up to version 4, but the majority of
>the pages are written using the ASP style syntax.  There is really not
>much to the source file, but I think the error is occurring in this
>function:
>
>static int
>AddCmds(Tcl_Interp *interp, void *ctx)
>{
>   Tcl_GlobalEval(interp,
>                   "proc _ns_asp_puts args {
>                       foreach textChunk $args {
>                           ns_adp_puts -nonewline $textChunk
>                       }
>                   }");
>
>   return NS_OK;
>}
>
>because "interp" isn't valid.  Or not.
>
>This is the initialization function:
>
>int
>Ns_ModuleInit(char *hServer, char *hModule)
>{
>   Ns_AdpRegisterParser("aspStyle", *AspStyleParsePage);
>   Ns_TclInitInterps(hServer, AddCmds, NULL);
>
>   return NS_OK;
>}
>
>I've seen other mentions in the archives about having this
>functionality, but no other solutions.  I've switched back to 3.5 for
>now, I can switch back to 4 and get some more information if necessary.
>If someone could give me a nudge in the right direction, I would
>appreciate it.
>
>Thanks,
>Vince
>
>
>--
>AOLserver - http://www.aolserver.com/
>
>To Remove yourself from this list, simply send an email to
<[EMAIL PROTECTED]> with the
>body of "SIGNOFF AOLSERVER" in the email message. You can leave the
Subject: field of your email blank.


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of 
your email blank.

Reply via email to