<div dir="ltr">A user goes to the URL <br><br><a href="http://server/path/to/servlet.ss/something/else/afterwards">http://server/path/to/servlet.ss/something/else/afterwards</a><br><br>I want to know <br><br>1) /path/to/servlet.ss as the virtual path for the servlet <br>
<br>so I can calculate <br><br>2) /sometihng/else/afterwards as the path info <br><br>`this-expression-file-name` doesn&#39;t tell me how many levels down is the server&#39;s root directory, so it&#39;s a bit more difficult to do relative path calculation. <br>
<br>Thanks,<br>yc<br><br><div class="gmail_quote">On Fri, Oct 3, 2008 at 2:29 PM, Jay McCarthy <span dir="ltr">&lt;<a href="mailto:jay.mccarthy@gmail.com">jay.mccarthy@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
A user goes to the URL<br>
<br>
<a href="http://server/path/to/servlet.ss" target="_blank">http://server/path/to/servlet.ss</a><br>
<br>
and you want<br>
<br>
servlet.ss<br>
<br>
Isn&#39;t that this-expression-file-name?<br>
<br>
<a href="http://docs.plt-scheme.org/mzlib/mzlib_etc.html#%28form._%28%28lib._mzlib/etc..ss%29._this-expression-file-name%29%29" target="_blank">http://docs.plt-scheme.org/mzlib/mzlib_etc.html#(form._((lib._mzlib/etc..ss)._this-expression-file-name))</a><br>

<font color="#888888"><br>
Jay<br>
</font><div><div></div><div class="Wj3C7c"><br>
On Fri, Oct 3, 2008 at 11:31 AM, YC &lt;<a href="mailto:yinso.chen@gmail.com">yinso.chen@gmail.com</a>&gt; wrote:<br>
&gt; This is a new issue after I switched the config table, because I made use of<br>
&gt; the `default-configuration-table-path`, sorry for the confusion.<br>
&gt;<br>
&gt; What I am doing is calculating the path in the url that belongs to the<br>
&gt; servlet&#39;s name (and the part that doesn&#39;t belong). &nbsp;The hack I came up with<br>
&gt; basically made use of `make-url-&gt;path` &amp; `make-url-&gt;valid-path` to derive<br>
&gt; the paths, and the only path that I can pass to `make-url-&gt;path` was the<br>
&gt; `default-configuration-table-path`, but this appears to be hard coded.<br>
&gt;<br>
&gt; If there are other ways to achieve what I am doing that would work as well.<br>
&gt;<br>
&gt; Thanks,<br>
&gt; yc<br>
&gt;<br>
&gt; On Fri, Oct 3, 2008 at 5:08 AM, Jay McCarthy &lt;<a href="mailto:jay.mccarthy@gmail.com">jay.mccarthy@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; I&#39;m confused. You want your servlet to know what the configuration<br>
&gt;&gt; table the server was run with?<br>
&gt;&gt;<br>
&gt;&gt; Jay<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
</div></div><div><div></div><div class="Wj3C7c">--<br>
Jay McCarthy &lt;<a href="mailto:jay@cs.byu.edu">jay@cs.byu.edu</a>&gt;<br>
Assistant Professor / Brigham Young University<br>
<a href="http://jay.teammccarthy.org" target="_blank">http://jay.teammccarthy.org</a><br>
<br>
&quot;The glory of God is Intelligence&quot; - D&amp;C 93<br>
</div></div></blockquote></div><br></div>