URL-Rewriting mechanism in JSR168

Hi,

we have to integrate an existing homepage in a portal application. The code of the websites can't be changed, because the homepage is furthermore used outside of the portal, too. So we need a dynamic url-rewriting for all links, images, java script-blocks and so on. We already developed a solution with string replacement what appears as not fast enough.

Many articles about JSR168 mention, that there is an url-rewriting mechanism included, what would be very interesting for our purposes. I reviewed the portlet specification's java doc from http://www.jcp.org/en/jsr/detail?id=168 , but could not find any methods for url-rewriting. Do you have any ideas?

Bye, Florian

[704 byte] By [Lord_Hessia] at [2007-11-26 8:09:31]
# 1

As far as I remember this is not a functionality of the SPEC.

This URL-Rewriting is done by the portal gateway.

You could use the URL Scraper but this includes only the first page of your app, this is usually not enough ..

So you need to rewrite your complete app to use the portlet or the provider functionality. In your case this seems to be impossible.

So use the portal for starting your portal-external-app then then use the GW Rewriter capabilities.

/u

UlfFeger at 2007-7-6 20:58:38 > top of Java-index,Web & Directory Servers,Portal Servers...