Hi Woonsan,
Thanks for your prompt reply. I executed the snippet of java code and got
below results:
=====================================================================
Exists? false
Canonical path:
/home/appsrv/dev/pages/__subsite-root/_hostname/Localhost/_user
=====================================================================
I attempted to navigate to Canonical
path(/home/appsrv/dev/pages/__subsite-root/_hostname/Localhost/_user) using
the unix command but i was not able to navigate to this path.
Upon comparing the name,title and short title for 'localhost' under Portal
Site Manager panel, i saw the name is 'Localhost', i changed the name to
lower case 'localhost' in Portal Site Manager panel and i was able to create
the user.
I created a new user 'register_test1' and it got created and i could see it
at the below hierarchy:
/
Administrative
__subsite-root
_hostname
localhost
_role
_user
register_test1
default-page.psml
Wrt to my previous email, i already have a default login psml page that is
being used by existing jetspeed users. My objective is to create a new psml
page (e.g: NewUserRegistration page) with public-view such that news users
without logging into portal should be able to access this registration page
and it should create access to new users inside jetspeed. (In other words
its a user registration from public view page).
For this reason, I created new folder by name 'registration.mycompany.com'
under (__subsite-root/_hostname) using Portal site manager and created
folders _user and _role in unix terminal window and it looks like below:
/
Administrative
__subsite-root
_hostname
localhost
registration.mycompany.com
_role
_user
Then i changed the UserManager settings as:
> Sub site root: /__subsite-root/_hostname/
> Default subsite: registration.mycompany.com
> New User template directory: /_user/template
> Default profile: subsite-by-hostname
> Default role: user
And i was able to create a user (register_test2). The existing hierarchy
looks as:
/
Administrative
__subsite-root
_hostname
localhost
_role
_user
register_test1
default-page.psml
registration.mycompany.com
_role
_user
register_test2
default-page.psml
Please do let me know if i visit the below URL:
http://registration.mycompany.com/jetspeed
Will i be able to view the default-page.psml page? If i could view this page
then i am planning to include the portlet as part of this page that includes
the jetspeed services to create a new users in portal:
<js:service name='UserManager'/>
<js:service name='GroupManager'/>
<js:service name='PortalAdministration'/>
I have not done any other configuration. Do i have to change the security
type to 'public-view' for 'default-page.psml'?
I am thankful for your help. Please suggest me.
Best Regards,
Srinivas.
Woonsan Ko wrote:
>
> Hi Srini,
>
> Can you check the path,
> "/home/appsrv/dev/webapps/jetspeed/../../pages/__subsite-root/_hostname/Localhost/_user"
> is the right intended path?
> I mean, for example, if there's any symbolic link in the directory path,
> it could target an unexpected directory path.
> You can also check it simply by the following code:
>
> String path =
> "/home/appsrv/dev/webapps/jetspeed/../../pages/__subsite-root/_hostname/Localhost/_user";
> java.io.File dir = new java.io.File(path);
> System.out.println("Exists? " + dir.exists());
> System.out.println("Canonical path: " + dir.getCanonicalPath());
>
> Regards,
>
> Woonsan
>
> --- On Fri, 10/15/10, SriniPitta <[email protected]> wrote:
>
>> From: SriniPitta <[email protected]>
>> Subject: PSML (Public view)
>> To: [email protected]
>> Date: Friday, October 15, 2010, 11:37 PM
>>
>> Hi,
>>
>> I would like have a PSML page (public view) that is
>> publicly accessible to
>> specific users who need NOT login in jetspeed to view this
>> page. And other
>> users need to continue to see the login page (i.e.,
>> the default jetspeed
>> login page).
>>
>> As per my understanding, i thought that i could achieve
>> this by subsites
>> where in i would create a subsite and a PSML page and i
>> would set the
>> security to 'public-view'.
>>
>> We are using Jetspeed 2.2.0
>>
>> The User Management has the below settings:
>>
>> Sub site root: /__subsite-root/_hostname/
>> Default subsite: Localhost
>> New User template directory: /_user/template
>> Default profile: subsite-by-hostname
>> Default role: user
>>
>> When i attempted to create a new user and give the profile
>> as
>> 'subsite-by-hostname' it gave me below error:
>> •/home/appsrv/dev/webapps/jetspeed/../../pages/__subsite-root/_hostname/Localhost/_user
>> does not exist.
>>
>> Upon looking into the directory structure i have the
>> __subsite-root under:
>>
>> drwxrwxr-x 5 appsrv appsrv 4096 Oct 11 12:24
>> /home/appsrv/dev/pages/__subsite-root
>> drwxrwxrwx 5 appsrv appsrv 4096 Nov 13 2009
>> /home/appsrv/pages/__subsite-root
>>
>> I do not know the reason for the error. I did follow the
>> documentation at
>> 'http://portals.apache.org/jetspeed-2/guides/guide-subsites.html'
>> but
>> honestly did not understand it clearly.
>>
>> I would appreciate for any provided help.
>>
>> Thanks for your time.
>>
>> Regards,
>> Srini
>>
>>
>> --
>> View this message in context:
>> http://old.nabble.com/PSML-%28Public-view%29-tp29975713p29975713.html
>> Sent from the Jetspeed - User mailing list archive at
>> Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>
--
View this message in context:
http://old.nabble.com/PSML-%28Public-view%29-tp29975713p29993990.html
Sent from the Jetspeed - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]