[jetty-user] Rewrite URL on multiple servlets

David Pache <[email protected]> Fri, 25 Nov 2011 12:42:50 -0500
Newsgroups gmane.comp.java.jetty.support
Message-ID <[email protected]>
Hi everybody,

I try to rewrite some URLs destinated to BIRT. The problem is that BIRT 
has three servlets : run, frameset and preview. So the rewriting must be 
like :
http://myserver.com/birt/myreport.rptdesign -> 
http://myserver.com/birt/preview?__report=myreport.rptdesign

My solution is based on RewriteHandler.
When I use a redirection based upon a regex no problem. When I use a 
rewriting (and I NEED a rewriting) with the same parameters, I have got 
a 404 error for the same address.

Where I miss something? Must I declare the servlet somewhere and if yes 
where and How?

Thank you for your help.

David Pache

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email