> > current-servlet-continuation-expiration-handler receives the request > (which contains request-uri) that expired. Is that all you want? >
That's exactly what I was looking for. Thanks! Tobias > > Jay > > > On Wed, Feb 5, 2014 at 9:26 AM, Janos Tobias Locsei <jtloc...@cantab.net> > wrote: > > Is there a way for a function in the web server to find out the current > url? > > > > I'm using stateful servlets and I'd like to redirect to the start page > of my > > app if the continuation expires, using something along the lines of > > > > (parameterize > > ([current-servlet-continuation-expiration-handler > > <send response that redirects to start of app>]) > > (send/suspend/dispatch ...)) > > > > I was hoping that I could write the bit inside the <> as a general > purpose > > function for all my apps, so that e.g. it would see that the current url > is > > > > http://mydomain.com/myapp;(("k" . "(8 2 17927109)")) > > > > and then just strip back the url and redirect to > > > > http://mydomain.com/myapp > > > > Is that possible? > > > > Tobias > > > > > > > > ____________________ > > Racket Users list: > > http://lists.racket-lang.org/users > > > > > > -- > Jay McCarthy <j...@cs.byu.edu> > Assistant Professor / Brigham Young University > http://faculty.cs.byu.edu/~jay > > "The glory of God is Intelligence" - D&C 93 >
____________________ Racket Users list: http://lists.racket-lang.org/users