Dear Magnolians
I'm stuck with a problem that showed up as you removed the cms servlet
and replaced it with the servlet filter instead.
I'm running a multi language site with a language dependent 404 page.
The setup is done as described in
www.magnolia.info/wiki/Wiki.jsp?page=Setup404Handler:
- tomcat handles the 404 error code by calling a 404 jsp page
- the 404 jsp pages determines the language of the user and jsp:forward
to a CMS managed 404 page
This worked fine with the servlet implementation because the servlet was
responding to the resource specified in the jsp:forward page attribute.
But it does not work with the servlet filter since the forward does not
pass through the filter.
I found out that the servlet 2.4 specs introduced the ability to
configure the filters to be invoked by request dispatcher forward()
and/or include() calls. But this does not work neither because the
request is already committed when the original 404 code is returned
using response.sendError().
The problem actually is that I cannot have a CMS managed 404 page, but I
should use a static one. It was a nice feature...
Is there another way to achieve this?
(no, I don't want to write a wrapper for the response :)
btw: What was the reasoning to remove the cms servlet and use filter
instead?
Thanks
Kiril
--
Meet us at Jazoon'07: 24 - 28 June - http://jazoon.com
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------