triggering servlet on GET parameters

Stephen De Gabrielle <[email protected]>
Newsgroups gmane.comp.lang.racket.user,gmane.lisp.scheme.plt
Message-ID <CAGHj7-LxB98PTJgYmGEf9ddMfsfJV9E9tTQjrWx+kepyr+Xy=Q@mail.gmail.com>
Hi,

I'm fooling around with #lang web-server/insta, and I can serve .html files
by setting (static-files-path page-root), but I'd like to trigger my
servlet if there is a '?action=edit' parameter set.

e.g
https://localhost/start.html just serves the file (I can do this!)
https://localhost/start.html?action=edit  calls my servlet (I can't work
out how to do this :( )

(There is a lot of documentation but I'm a beginner with webdev so don't
know where to look)

Kind regards

Stephen

PS the project is a scribble based wiki. If you create a new page you enter
raw scribble/manual in a form (my servlet) and it gets saved in a folder
and transformed into html that is served directly by (static-files-path
page-root), the conversion from raw scribble goes like this:
(require raco/all-tools)
(define raco-scribble-spec (hash-ref (all-tools) "scribble"))
;;scribble-to-html : source target body
;; generate html file from scribble file
(define (scribble-to-html source target) ;-> list of strings
  (parameterize ([current-command-line-arguments (vector "--html" source)]
                 [current-directory target])
    (dynamic-require (cadr raco-scribble-spec) #f)))

-- 
You received this message because you are subscribed to the Google Groups "Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
For more options, visit https://groups.google.com/d/optout.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.