No subject

From: ()
Date: Fri Jul 13 09:02:16 EDT 2012

quests to responses. If you use serve/servlet, there's no reason that t=
he 'start' function you give it can't dispatch to many things t=
hat you think of as independent servlets:<div>
<br></div><div>(define-values (top-dispatch top-url)</div><div>=C2=A0(dispa=
tch-rules</div><div>=C2=A0 [(&quot;cats&quot; (string-arg) ...] goto-cat-se=
rvlet]</div><div>=C2=A0 [(&quot;dogs&quot; (string-arg) ...] goto-dog-servl=
et]))</div>
<div><br></div><div>(define (goto-cat-servlet req args)</div><div>=C2=A0(ca=
t-servlet req))</div><div><br></div><div>etc</div><div><br></div><div>Addit=
ionally, if you use the command line tool, &#39;plt-web-server&#39;, then s=
ervlets will be read, cgi-bin-style, from a directory you name in a configu=
ration file. This same functionality is available with the &#39;servlets-ro=
ot&#39; argument to serve/servlet.</div>
<div><br></div><div>Jay</div><div class=3D"gmail_extra"><br><br><div class=
=3D"gmail_quote">On Fri, Nov 2, 2012 at 4:50 PM, Kejia=E6=9F=AF=E5=98=89 <s=
pan dir=3D"ltr">&lt;<a href=3D"mailto:w.kejia at gmail.com" target=3D"_blank">=
w.kejia at gmail.com</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><span style=3D"line-height:18px;font-size:14=
px;font-family:Arial,&#39;Liberation Sans&#39;,&#39;DejaVu Sans&#39;,sans-s=
erif">hi all,</span><div>
<span style=3D"line-height:18px;font-size:14px;font-family:Arial,&#39;Liber=
ation Sans&#39;,&#39;DejaVu Sans&#39;,sans-serif"><br>

</span></div><div><span style=3D"line-height:18px;font-size:14px;font-famil=
y:Arial,&#39;Liberation Sans&#39;,&#39;DejaVu Sans&#39;,sans-serif">i read =
several examples showing how to deploy a servlet in a racket web server, bu=
t none mentions how to run multiple ones at a time. so, racket&#39;s web ap=
plication model appeals single-servlet services?</span></div>


<div><font color=3D"#000000" face=3D"Arial, Liberation Sans, DejaVu Sans, s=
ans-serif"><span style=3D"font-size:14px;line-height:18px"><br></span></fon=
t></div><div><font color=3D"#000000" face=3D"Arial, Liberation Sans, DejaVu=
 Sans, sans-serif"><span style=3D"font-size:14px;line-height:18px">``</span=
></font></div>


<div><font color=3D"#000000" face=3D"Arial, Liberation Sans, DejaVu Sans, s=
ans-serif"><span style=3D"font-size:14px;line-height:18px">(serve/servlet s=
tart #:listen-ip #f #:port 8080)</span></font></div><div><font color=3D"#00=
0000" face=3D"Arial, Liberation Sans, DejaVu Sans, sans-serif"><span style=
=3D"font-size:14px;line-height:18px">&#39;&#39;<br clear=3D"all">


</span></font><br>-------------<div>kejia</div><div><br>=E2=98=B5=E2=98=AF=
=E2=98=B2<br><br>
</div></div>
<br>____________________<br>
=C2=A0 Racket Users list:<br>
=C2=A0 <a href=3D"http://lists.racket-lang.org/users" target=3D"_blank">htt=
p://lists.racket-lang.org/users</a><br>
<br></blockquote></div><br><br clear=3D"all"><div><br></div>-- <br>Jay McCa=
rthy &lt;<a href=3D"mailto:jay at cs.byu.edu" target=3D"_blank">jay at cs.byu.edu=
</a>&gt;<br>Assistant Professor / Brigham Young University<br><a href=3D"ht=
tp://faculty.cs.byu.edu/~jay" target=3D"_blank">http://faculty.cs.byu.edu/~=
jay</a><br>
<br>&quot;The glory of God is Intelligence&quot; - D&amp;C 93<br>
</div>

--047d7bdc96948df09a04cd98410f--

Posted on the users mailing list.