[plt-scheme] PLT Web Server: GET variables
A simple example:
(define the-request
(send/suspend (lambda (k-url)
`(html (form ([action ,k-url]) (input ([type "text"] [name "a"]))
(input ([type "submit"]))))))
(request-bindings request)
Also, the `start' function is given a request object that corresponds
to the initial request.
Jay
On 8/14/07, Greg Johnston <greg.johnston at gmail.com> wrote:
> That's what I thought, but I'm not sure how to do a send/suspend or
> the like for the same page the function is using. What would be the
> syntax?
>
> On 8/14/07, Jay McCarthy <jay.mccarthy at gmail.com> wrote:
> > request-bindings is what you want.
> >
> > Jay
> >
> > On 8/14/07, Greg Johnston <greg.johnston at gmail.com> wrote:
> > > Hey all,
> > >
> > > I've been fooling around with servlets recently. The only problem is
> > > that I can't find any obvious way to access GET variables...can this
> > > be done?
> > >
> > > Thanks for any advice,
> > > Greg
> > > _________________________________________________
> > > For list-related administrative tasks:
> > > http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> > >
> >
> >
> > --
> > Jay McCarthy <jay.mccarthy at gmail.com>
> > http://jay.teammccarthy.org
> >
>
--
Jay McCarthy <jay.mccarthy at gmail.com>
http://jay.teammccarthy.org