You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Tim Colson <tc...@cisco.com> on 2004/01/09 19:42:17 UTC

Global context settings?

I have a few context variables that need to be set once for the Portal
and used by all portlets. Right now, every portlet adds the same info to
the context in case that portlet is the ONLY one selected by the user.

Is there a place to set these variables one time for each request to the
portal server? 

For example: $image_base_href for use by all portlets that display
images - using img src="$image_base_href/relative/path/to.gif"

Thanks!
Timo


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


RE: Global context settings?

Posted by Jeremy Ford <ca...@hotmail.com>.
If your settings are in the property files, you could try using
$config.getString("myproperty") in your portlet vm.  Also, take a look at
the tool section TurbineResources.properties if you need to place your own
tools in the context.


Jeremy Ford
jford@apache.org


-----Original Message-----
From: Tim Colson [mailto:tcolson@cisco.com] 
Sent: Friday, January 09, 2004 12:42 PM
To: 'Jetspeed Users List'
Subject: Global context settings?

I have a few context variables that need to be set once for the Portal
and used by all portlets. Right now, every portlet adds the same info to
the context in case that portlet is the ONLY one selected by the user.

Is there a place to set these variables one time for each request to the
portal server? 

For example: $image_base_href for use by all portlets that display
images - using img src="$image_base_href/relative/path/to.gif"

Thanks!
Timo


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org