cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Heiden" <patrickhei...@gmx.de>
Subject Re: Block redirect/dispatch
Date Wed, 09 Apr 2008 07:53:39 GMT
Hi Nikolas!

Could you please state a snipped of your sitemap to get an overview of how you actually redirect
request params? 

Best regards,
Patrick
-------- Original-Nachricht --------
> Datum: Wed, 09 Apr 2008 08:11:33 +0200
> Von: Nikolas List <list@metromorph.de>
> An: users@cocoon.apache.org
> Betreff: Block redirect/dispatch

> Hello all,
> 
> I'm currently working on a cocoon 2.2 application using multiple blocks.
> Every block is specialized on serving different content (probably
> including forms). What I would like to achieve is to present a unified
> URL space to the user, meaning something like
> 
> /block-A/niceurl/serving/form
> /block-B/otherurl/serving/hints-from plain-file
> 
> should be
> /contact/         (redirecting to /block-A/niceurl/serving/form)
> /contact/hints/   (redirecting to /block-B/otherurl/serving/hints-fr...)
> 
> I first thought I could use a core block mounted at "/", resolving the
> mapping (I have a spring bean administrating all mappings) and
> "redirect" the request via Servlet-Service-Framework
> servlet:block-X:/anurl (Redirect means I simply generate the ready
> result from src="servlet:block-X:/anurl"). But if I understood the
> design of SSF correctly, it is not intended for such kinds of
> redirection, as it does (for admittedly good reasons) not redirect the
> whole environment including parameters - this is however needed in my
> scenario, where only block-X knows how to handle the original HTTP
> request (including all request parameters)
> 
> The "old" style cocoon://redirect/path doesn't seem to work either as it
> will not be dispatched to a different block (as already the Sitemap
> Servlet of my core block "/" started to serve the request.
> 
> Fiddling with the DispatcherServlet would work, but doesn't seem to be a
> good idea ;-)
> 
> Is there any natural way to achieve the described target?  Or am I
> missing something and the design is bogus?
> 
> Best regards,
> Niko
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org

-- 
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/?mc=sv_ext_mf@gmx

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message