You can also write up a quite ns_adp_forward which does more or less what you're looking for so it's easier/cleaner to use. That's what I did in several cases.

Rob Seeger

Bas Scheffers wrote:
Xavier,

Inside an ADP, you could simply use ns_adp_include. If you want to do it in a Tcl file/proc, you coud do:

ns_return 200 "text/html" [ns_adp_parse -file [file join [ns_info pageroot] "path/to/my_file.adp"]]

Hope that helps,
Bas.

On 22/04/2008, at 6:26 PM, Xavier Bourguignon wrote:

Hello all,

Is there a similar procedure to ns_returnredirect which returns an adp
file with an HTTP code of 200? For example: ns_return index.adp.

I have looked in the API, but I haven't found anything.

Would it be difficult to build such a procedure?

I already know about ns_return 200 "text/html" "html I want to
return", but I would love to be able to pass a file name and not have
to pass the HTML in a string.

I use singlescript = 1 in my configuration file, just in case this
makes a difference in your potential answer.

Thank you

--
Xavier Bourguignon


--
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.



--
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