|
From: Wolfgang <wol...@ex...> - 2009-08-25 14:24:40
|
> I think you should do the lookup in urlrewriter and pass it into > test.xq as a parameter or set a request attribute which you can then > read in test.xq Yes, that's the recommended approach. The original URI will also be available in the request attribute "org.exist.forward.request-uri". I stumbled across this problem before and decided not to change the current behaviour. XQueryURLRewrite relies on the servlet engine for the actual forwarding and the servlet engine does not preserve the original URI but changes it to the forward URI. I'm not sure if this is part of the servlet specs, but the behaviour seems to be consistent across the servlet engines I tried (jetty, tomcat). I would thus like to keep things as they are. Wolfgang |