|
Subject: Re: path info Newsgroups: gmane.comp.web.click.user Date: 2007-05-09 09:12:23 GMT (2 years, 8 weeks, 2 days, 1 hour and 36 minutes ago) > I am setting up a new service in our application that will output > information about different products. For each product there will be > a possiblity to request a human readable html, a standardized xml and > a jpg thumbnail. The URLs will be like this: > > http://myserver/myapp/metadata/ProductA.htm > http://myserver/myapp/metadata/ProductA.xml > http://myserver/myapp/metadata/ProductA.jpg > http://myserver/myapp/metadata/ProductB.htm > ... and so on > > Of cource the number of products are huge and dynamic. I want to use > click for the html-part of this service. I do not want to use apache > url rewriting as this should work with standalone tomcat and/or jetty > as well. > > Can I create a MetadataServlet that extract the product information > ("A", "B" and so on) and somehow forward the request to the > ClickServlet and a standard ProductPage if the suffix is "htm" (not > "xml" or "jpg")? Wouldn't be much simpler to use URLRewriteFilter : http://tuckey.org/urlrewrite/ (with inbound and outbound rules) to remap "/metadata/ProductA.htm" to "/metadata/Product.htm?name=A"? And have just a simple "Product.htm" page with one parameter? Ahmed. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ |
|
|