On Wed, Dec 16, 2009 at 12:47 PM, Simon Gaeremynck
<[email protected]> wrote:
>
> Thanks, but that is not exactly what I'm looking for.
> My previous explanation wasn't clear enough.
>
> I want to be able to do posts to both nodes and registered servlets.
> I then went to grab the response and send that back.  From what I can tell,
> this doesn't seem to work for servlets.
> ex:
> - Nodes
>  Set properties on the nodes or do any of the @Delete, @Move things sling
> provides
> - Servlets
>  Do a request to the servlet, let the servlet do it's thing and get the
> response that I can send back to the user.
>
> This is why I wanted to wrap both the request and response.

Ok, I see. Sounds to me like you can get some way with a servlet
filter, but I think it will be tricky to modify request parameters.

> As a little sidenode, I wrote a small patch [1] that allowed you to send a
> couple of properties to multiple nodes and apply those. It would use the
> applyTo parameter. I also added the possibility to make applyTo a query as
> discussed at [2].
> I didn't submit it because it was something I just hacked together which we
> didn't really need it in the end plus I hadn't really thoroughly tested.

Ah yes, that one :)
>From just a brief look, the patch looks fine to me. I'll take a closer
look when I have more time, maybe others can check it out as well?

(If you want to commit it, I'm sure Bertrand would be happy if you
include some automated tests)

-- 
Vidar S. Ramdal <[email protected]> - http://www.idium.no
Sommerrogata 13-15, N-0255 Oslo, Norway
+ 47 22 00 84 00 / +47 21 531941, ext 2070

Reply via email to