I&#39;m not quite sure what you mean by dispatcher path, but looking at what I think the code is returning, is the following the same or do you have something else in mind?<br><br>self application name<br><br><div class="gmail_quote">

On Thu, Sep 1, 2011 at 11:41 PM, Nick Ager <span dir="ltr">&lt;<a href="mailto:nick.ager@gmail.com">nick.ager@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi,<div><br></div><div>I&#39;ve come up with the following code to identify an application&#39;s dispatcher path:</div><div><br></div><div><div><span style="white-space:pre-wrap">        </span>| requestContext appPath dispatcher |</div>


<div><span style="white-space:pre-wrap">        </span>requestContext := self requestContext.</div><div><span style="white-space:pre-wrap">        </span>dispatcher := requestContext handlers detect: [ :each | each isDispatcher ] ifNone: [ nil ].</div>


<div><span style="white-space:pre-wrap">        </span>appPath := dispatcher isNil </div><div><span style="white-space:pre-wrap">                </span>ifTrue: [ &#39;&#39; ]</div><div><span style="white-space:pre-wrap">                </span>ifFalse: [ dispatcher handlers keyAtValue: requestContext application ].</div>


</div><div><br></div><div>is there an easier/better way?</div><div><br></div><div>Thanks</div><div><br></div><font color="#888888"><div>Nick</div>
</font><br>_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
<br></blockquote></div><br>