Jonathan Hawkins wrote:
Carlos,

Unless anyone comes up with anything better, I'm looking at using
"Forwards" and passing the URL as a parameter.


If you have real external URL that you need to pass between portlets, you'll probably be better off using a Map to index these URLs.

For example:
- define a properties file with the URLs you want use (if you want to
update them in real time without reloading J1, consider using a SQL
table instead)

myURL.properties
url1=http://myserver/url
url2=http://myserver2/url
...

- add a "urlmap" parameter to both of your portlets in the registry
  that points to your properties file
- make sure to load the properties file into a java.util.Properties
  object, which you'll include as "urlmap" in your portlet context (in the
  buildNormalContent() of your portlets)
- you can then simply use the properties key (like url1, url2, etc...)
  between your portlets to reference your URLs without encoding issues.

A slightly more complex setup (but way more powerful) would be to define
your links in local OCS or RSS files and use the OCS and RSS tools of
Jetspeed to create your link map...

--
Rapha�l Luta - [EMAIL PROTECTED]
Apache Jetspeed - Enterprise Portal in Java
http://jakarta.apache.org/jetspeed/


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to