Response inline :)

Simon

(btw, I'm not getting any mails from the u...@sling list?)

On 16 Dec 2009, at 12:42, Vidar Ramdal-2 [via Apache Sling] wrote:

On Wed, Dec 16, 2009 at 12:47 PM, Simon Gaeremynck 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.


Hmm, OK. I think it would work if I would be able return valid RequestParameter's in the SlingHttpServletRequestWrapper. But since these all get created in impl I can't get to it.

I don't really want to using filters for this.


> 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)

I'll see what I can do. :)


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


View message @ 
http://n3.nabble.com/Dispatching-a-request-with-new-RequestParameters-tp91233p92141.html
To unsubscribe from Re: Dispatching a request with new RequestParameters, click here.


Reply via email to