Hi Rakesh, I'm not sure, but maybe is a better approach for your URL-rewriting to use Magnolia functionality, see http://documentation.magnolia-cms.com/technical-guide/virtual-uri-mapping.html
With the class info.magnolia.cms.beans.config.RegexpVirtualURIMapping you can use regex. Cheers, Niki 2011/1/21 Rakesh Vidyadharan <[email protected]> > We have lots of nodes in our own workspace (books, authors, etc.), and we > have common templates with their associated web page (eg. bookDetail.html, > authorDetail.html) that takes a path parameter and then displays the > appropriate content for the specified node. > > We would like to hide the destination html page from the browser (eg. > /books/bookDetail.html?path=/books/book/chicago/A/bo123456) with just the > node path url (eg. /ucp/books/book/chicago/A/bo123456.html which is what all > links in our site look like). > > This itself was trivial, I just created a servlet that was mapped to > /ucp/books/book and all it did was forward the request to the > bookDetail.html?path=<nodePath> and everything worked as expected. The only > issue with this approach is that the output from the servlet does not seem > to be cached (I verified by logging from the model class backing the > template). > > So, the question is, how can I go about getting the servlet response to be > cached in the magnolia cache? > > Thanks > Rakesh > > > ------------------------------ > ---------------------------------------------------------------- > For list details see > http://www.magnolia-cms.com/home/community/mailing-lists.html > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- > ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
