I use the following code to "forward" requests, which seems to work ok.
proc ladp_forward {adpFile} { ns_adp_trunc ns_adp_include $adpFile ns_adp_break } Rob Seeger Dossy Shiobara wrote on 9/26/2005, 8:08 AM: > On 2005.09.26, Bas Scheffers <[EMAIL PROTECTED]> wrote: > > Sarath PS said: > > > Is there any way to forward a request, instead of include (as with > > > ns_adp_include ) ? > > > > Forward, as in how you can forward to another resource (JSP/Servlet) > in a > > J2EE server, which then is treated as a completely new page but with > the > > same request variables available? > > > > Not that I know of. :) > > Hmm, I wonder what the harm would be in exposing Ns_ConnRedirect() via a > Tcl command, which would give a somewhat similar "internal redirect" or > "forward" capability to Tcl/ADP scripts. > > The only reason this would be a "bad" idea is because currently the > recursion counter is in ReturnRedirect, not in Ns_ConnRedirect ... but, > I imagine that could be pushed up without much ill effect. > > -- Dossy > > -- > Dossy Shiobara [EMAIL PROTECTED] | http://dossy.org/ > Panoptic Computer Network http://panoptic.com/ > "He realized the fastest way to change is to laugh at your own > folly -- then you can let go and quickly move on." (p. 70) > > > -- > 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.