On Sun, Dec 12, 2010 at 10:09 AM, Unmesh Joshi <[email protected]> wrote:
> Hi Vidar,
>> A more REST-like approach would be to post to /account-entry/*. You
>> would then use a SlingPostOperation or SlingPostProcessor to do the
>> validation and/or persisting.
>
> If I post to /account-entry/*. It still find the resource resolver I
> have which has resource type as "myapp/account-entry.jsp.".
> Plus, In PostProcessor or PostOperation, I do not get handle to
> HttpServletResponse so I can not redirect to Url I want.
> So it ends up showing up same JSP again.
>
> I think using servlet for handling POST request gave a lot more
> control. (But doesnt fit well in the REST style)
>
> Am I missing anything here.?

You can specify a redirect URL in your POST, by using a :redirect field.


-- 
Vidar S. Ramdal <[email protected]> - http://www.idium.no
Sommerrogata 13-15, N-0255 Oslo, Norway
+ 47 22 00 84 00 / +47 22 00 84 76
Quando omni flunkus moritatus!

Reply via email to