Ender Hikmet KILI�OGLU wrote: > Yes It's really related to psml but my suggestion is: > when the guest come to a site I will extract user info from address and > Assign it to the gues session but. I need to remove custimization or other > rigths. I thing it will be easy to to assign. > Also I dont know very well jetspeed's source tree I need someone to show the > rigth point to start. Like "profiler" .. >
Since you're talking only about "guest", I understand that what you actually want is that requests are redirected to different pre-configured PSML file simply by using the site name and without authentication so that user can't modify the portal. If this is correst then the easiest way to implement it is: - use base Jetspeed but disable authentication (if you really don't need it) or obsucate it by removing the auth links found in the <webapp>/WEB-INF/templates/vm/navigations/top.vm template - define each of your portal home page in a different PSML file and store it in <webapp>/WEB-INF/psml/anon/html/<sitename>.psml you can now test you're portal page by using: http://localhost:8080/jetspeed/portal/page/<sitename> (no authentication required) - connect an Apache HTTP server in front of your servlet engine with mod_rewrite enabled and write the mod_rewrite rule that will do what you want, for example this should work for home page redirection RewriteCond %{HTTP_HOST} ^(.*).mydomain.com [NC] RewriteRule ^/ /jetspeed/portal/page/%1 (note, you'll need some additionnal rules to correctly handle the images and css files but you get the idea...) Check mod_rewrite documentation if you need help on this part. Et voila. You don't have to write a single line of code :) If you need to modify code, start by looking at org.apache.jetspeed.services.profiler.ProfilerService interface and its implementation in the same directory. -- Raphael Luta - [EMAIL PROTECTED] Professional Services Manager Vivendi Universal Networks - Paris -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
