* Mark Stosberg <[EMAIL PROTECTED]> [2005-12-20T17:20:18]
> >
> > This works very nicely.
> 
> Interesting. This looks sort of like the sub_request that Catalyst has:
> 
>  http://search.cpan.org/perldoc?Catalyst::Plugin::SubRequest
> 
> Why not use an external redirect, giving the resulting page a bookmarkable
> URL? 

Well, it takes a little more time and resources for an external redirect, for
one thing.
 
> (It realize it takes a little more time and resources for an external
> redirect because it's a roundtrip to the browser and back.)

Ah, well then:

Also, this goes back to the iterative dispatch that I talked about a while ago.

  http://example.com/webservice/object/o_id/subobject/so_id/action

All service goes through Webservice::Root.  An autorunmode for "object"
consumes the next part of the path, picks up the object in quesiton, and
redispatches to Webservice::Object, which does the same for the related
subobject.  Webservice::Object::Subobject has a runmode "action" which actually
does something with the found subobject, using its own logic and any available
form data.

-- 
rjbs

Attachment: pgpIMcQkVQERk.pgp
Description: PGP signature

Reply via email to