[AOLSERVER] ASP style parser
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.
Re: [AOLSERVER] ns_openssl mystery problem
This may be similar to a problem I had a while ago. If I remember correctly the symptoms; if you went to a secure page, and sat there for a while, then went to another page, you would get a "page not found" error. What I had to do was to change the keepalivetimeout parameter to 0 in the nsd.tcl file. This disables that timeout. I believe it may have been Scott Goodwin who mentioned to try that. I think my original timeout was like 2 minutes, so to recreate it I would go to a page and sit there for two minutes, and then try to navigate to another. I could get the "page not found" every time. After changing it to 0, the problem went away. I also think it was somehow related to the version of the browser, perhaps Internet Explorer not handling keep-alive's correctly. Vince -Original Message- From: AOLserver Discussion [mailto:[EMAIL PROTECTED] On Behalf Of Niels Hallenberg Sent: Thursday, November 13, 2003 3:11 To: [EMAIL PROTECTED] Subject: Re: [AOLSERVER] ns_openssl mystery problem Hi there, I reported a similar problem in April (search for Hallenberg): http://listserv.aol.com/cgi-bin/wa? A2=ind0304&L=aolserver&P=R2218&I=-3&X=5BD33E6DF0631E5F50&[EMAIL PROTECTED] http://listserv.aol.com/cgi-bin/wa? A2=ind0304&L=aolserver&D=0&I=-3&X=5BD33E6DF0631E5F50&[EMAIL PROTECTED]&P=3715 http://listserv.aol.com/cgi-bin/wa? A2=ind0304&L=aolserver&D=0&I=-3&X=5BD33E6DF0631E5F50&[EMAIL PROTECTED]&P=11776 We still have the problem. I don't know if it may be caused by a not thread safe openssl-library? Scott Goodwin kindly clarified some of our problems, but so far we haven't been able to solve the problem completely. There have been very few postings regarding this problem, so I have been convinced that our problem was not a general problem - and therefore we shouldn't use valuable time from members on this list. In our setting we use a Standard ML module (www.smlserver.org) and the problem might be caused by this module - I don't think so, but at the same time I can't say this for sure. However, if you are also facing the same problem, then we are indeed interested in looking into the problem again. -- Niels -- 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.
Re: [AOLSERVER] ACT Vote Off
Tom Jackson -- Vince Ciganik <[EMAIL PROTECTED]>
[AOLSERVER] Dynamic graphing with AOLServer
I'm going to need to add some reporting with dynamic graphs to our website, currently using AOLServer 3.4.2 and running on Redhat 6.2. Anyone currently doing that using AOLServer? And what would you recommend as to cause the least amount of pain and frustration? I'll just need simple line plots mostly, with perhaps some shaded areas to indicate things "in range". My initial research seems to indicate that i could use gnu plot to generate the graphs and then convert them to images for display on the page. Any other suggestions or pointers? Thanks, Vince
[AOLSERVER] The Mailing List
Is it still functional? I haven't received anything for the last two days. I tried resubscribing, and I was told that I was already subscribed. Thanks, Vince
[AOLSERVER] Error Handling
Is there any way in AOLServer to register an exception handler? What I would like to avoid is going over all the pages in my site and adding a "catch" statement so that if an exception is thrown, either through the tcl interpreter or or a postgresql query or action, I could catch it with a proc or page. Thanks, Vince
Re: [AOLSERVER] global vars
I am having trouble getting global variables to work and I was hoping if someone could give me some insight. This is the situation: 1) page 1 sets a global variable test to 0 (nsv_set . test 0) 2) page 2 reads that variable correctly (nsv_get . test), does some processing and sets the variable to 1 (nsv_set . test 1) 3) page 1 has a timer running with javascript, each time it hits, it checks test (nsv_get . test), but it never sees the change that page 2 made, it always sees it as 0. Am I missing something very obvious here? Thanks, Vince -Original Message- From: AOLserver Discussion [mailto:[EMAIL PROTECTED]]On Behalf Of Rob Cabacungan Sent: Monday, June 25, 2001 18:22 To: [EMAIL PROTECTED] Subject: Re: [AOLSERVER] global vars global doesn't work like that for AOLserver. This kind of usage is what nsv was designed for. Rewrite using nsv instead: globalInfo.adp <% nsv_set . test "Thisisatest" %> showGlobal.adp <% ns_adp_puts [nsv_get . test] %> Why? Remember that these two adp's are not part of a single script. They are invoked by HTTP requests, which are stateless. They don't share memory or variables. Use nsv instead of ns_share, if you can--it's more efficient. See: http://www.aolserver.com/docs/nsv.adp Rob Prakash Sinha wrote: > > i have two files in the same directory. > > globalInfo.adp > <% > global test > set test "Thisisatest" > %> > > showGlobal.adp > <% > #ns_adp_include globalInfo.adp > global test > ns_adp_puts $test > %> > > It fails giving error test is undefined. > > Any idea? > P
Re: [AOLSERVER] nspostgres
I know that was a problem with the old postgres driver on the aolserver site. I think the date on it was 08/20/2000, or something like that. A newer one can be found at http://openacs.org/software.adp. Give that one a try, I think it will solve the problem. -Original Message- From: AOLserver Discussion [mailto:[EMAIL PROTECTED]]On Behalf Of Ian Harding Sent: Wednesday, June 13, 2001 19:26 To: [EMAIL PROTECTED] Subject: [AOLSERVER] nspostgres Actually, the length of the query string seems not to be my problem. What is happening is that any ERROR being returned from postgresql is causing nsd to fall on its face with a segmentation fault. NOTICEs seem to be handled fine. I assume this is not the typical response to a database error with this driver. The wildcard is that I am running aolserver (3.4) on NetBSD 1.5 with PTL as the thread library. Does anyone have any idea what is going on and how to fix it, if it can be fixed? This might be a showstopper. I would hate to have to change OS at this stage of the game... Ian A. Harding Programmer/Analyst II Tacoma-Pierce County Health Department (253) 798-3549 mailto: [EMAIL PROTECTED]