[plt-scheme] HTML Links

From: Hans Oesterholt-Dijkema (hdnews at gawab.com)
Date: Sat Feb 3 10:06:39 EST 2007

/BUT, The is a little wrong. A browser can only have one cookie, and
therefore not appropriate to store which continuation is next when
using send/suspend/dispatch. (Also probably not a good idea when using
send/suspend, because the back button would break.)
/
I know. Write your own dispatcher? Is there some documentation
for this? How can I do it?

--Hans


Jay McCarthy schreef:
> There is nothing built in for this, but you can write your own
> dispatcher to install around the standard set to do such URL
> rewriting.
>
> BUT, The is a little wrong. A browser can only have one cookie, and
> therefore not appropriate to store which continuation is next when
> using send/suspend/dispatch. (Also probably not a good idea when using
> send/suspend, because the back button would break.)
>
> Jay
>
> On 2/3/07, Hans Oesterholt-Dijkema <hdnews at gawab.com> wrote:
>> Or, maybe I'm asking the wrong questions? I'd like to be
>> able to convert:
>>
>>    http://some.site.org/a-page.html
>> +
>>   cookie: 
>> plt-web-server-session-id-for-this-connection=<some-session-id>
>>
>> to
>>
>>
>> http://some.site.org/servlets<some-session-id>/some-program.ss?page=a-page 
>>
>>
>> So at the outside, it looks like a normal web page. From the
>> inside, we know it isn't so.
>>
>> --Hans
>>
>>
>> Jay McCarthy schreef:
>> > Sorry, I don't understand the questions. See that in what code? How
>> > would a continuation be matched with a cookie? Pre and post process
>> > request with regards to what?
>> >
>> > I have just got back from a 10 hour flight plan, so I may be more
>> > stupid than usual.
>> >
>> > Jay
>> >
>> > On 2/2/07, Hans Oesterholt-Dijkema <hdnews at gawab.com> wrote:
>> >> Or could there be a possibility to pre- and post-process the request?
>> >>
>> >> --Hans
>> >>
>> >> Hans Oesterholt-Dijkema schreef:
>> >> > I see a function (continuation-url?) in the code. Could this
>> >> continuation
>> >> > matching also be arranged using a cookie?
>> >> >
>> >> > --Hans
>> >> >
>> >> >>
>> >> >>> 2. Is it possible to hide the /servlet<id>/ thing?
>> >> >>
>> >> >> Not yet. Sorry.
>> >> >>
>> >> >> Jay
>> >> >>
>> >> >
>> >> > _________________________________________________
>> >> >  For list-related administrative tasks:
>> >> >  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>>
>>
>
>



Posted on the users mailing list.