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 Tender Slim <xs...@gmx.com> on 2010/02/02 18:32:29 UTC

Where do I place my psml files?

I am using Eclipse and I have my jetspeed core application (prjA)  and my
portlet application (prjB) in two different web projects. And from the
little --I am a newbie -- that I have read, my psml file should go under
prjA /WebContent/WEB-INF/pages.

A Please could someone confirm that my understanding is correct:
i  Separating the project prjA and prjB.
ii. The location of the psml files.

B If I am right so far, the next question is:
Can I then create the following new directory:

prjA /WebContent/WEB-INF/pages/myusers
or  
use the existing reserve directory such as _role or _user.


C Would the following directory structure be valid?

prjA /WebContent/WEB-INF/pages/_user/guest/_mediatype/{xhtml | html |
wml}/default-page.psml
or 
prjA /WebContent/WEB-INF/pages/myusers/guest/_mediatype/{xhtml | html |
wml}/default-page.psml

or 

none of the above.


Thanks in advance





-- 
View this message in context: http://old.nabble.com/Where-do-I-place-my-psml-files--tp27424293p27424293.html
Sent from the Jetspeed - User mailing list archive at Nabble.com.


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


Re: Where do I place my psml files?

Posted by Tender Slim <xs...@gmx.com>.
Hello Woonsan Ko, 

Accept my apologies for my belated thanks. Your reply has given me
confidence in my understanding of jetspeed. Thanks again.

Tender Slim
 

Woonsan Ko wrote:
> 
> Hi Tender,
> 
> Please see my comments below.
> 
> 
> 
> ----- Original Message ----
>> From: Tender Slim <xs...@gmx.com>
>> To: jetspeed-user@portals.apache.org
>> Sent: Tue, February 2, 2010 6:32:29 PM
>> Subject: Where do I place my psml files?
>> 
>> 
>> I am using Eclipse and I have my jetspeed core application (prjA)  and my
>> portlet application (prjB) in two different web projects. And from the
>> little --I am a newbie -- that I have read, my psml file should go under
>> prjA /WebContent/WEB-INF/pages.
>> 
>> A Please could someone confirm that my understanding is correct:
>> i  Separating the project prjA and prjB.
>> ii. The location of the psml files.
> 
> Sounds good. By the way, the psml page path is configured in
> /WEB-INF/conf/jetspeed.properties as follows:
> 
> # default path to (XML) PSML pages root folder
> psml.pages.path = ${applicationRoot}/WEB-INF/pages
> 
> If you add a property in /WEB-INF/conf/override.properties with same name,
> but with different path, then you can override the default psml path.
> In this sense, it's also possible to separate the psml files into another
> project from the portal project.
> 
>> 
>> B If I am right so far, the next question is:
>> Can I then create the following new directory:
>> 
>> prjA /WebContent/WEB-INF/pages/myusers
>> or  
>> use the existing reserve directory such as _role or _user.
> 
> You can create pages in a folder in the former way. In that case, portal
> pages can be accessed by the url path (e.g.
> /jetspeed/portal/myusers/test.psml) to every user in normal case.
> However, /_role/ or /_user/ folder is a special folder to provide
> different page based on principal with a given url. Please refer to the
> following two pages on this feature:
> 
> [1] http://portals.apache.org/jetspeed-2/adminguide/profiler.html
> [2] http://portals.apache.org/jetspeed-2/deployguide/guide-profile.html
> 
> 
>> 
>> 
>> C Would the following directory structure be valid?
>> 
>> prjA /WebContent/WEB-INF/pages/_user/guest/_mediatype/{xhtml | html |
>> wml}/default-page.psml
>> or 
>> prjA /WebContent/WEB-INF/pages/myusers/guest/_mediatype/{xhtml | html |
>> wml}/default-page.psml
>> 
>> or 
>> 
>> none of the above.
> 
> If you want the profiling rule feature for a user, then I think the first
> one is right.
> 
> 
> Kind regards,
> 
> Woonsan
> 
> 
>       
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Where-do-I-place-my-psml-files--tp27424293p27712358.html
Sent from the Jetspeed - User mailing list archive at Nabble.com.


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


Re: Where do I place my psml files?

Posted by Woonsan Ko <wo...@yahoo.com>.
Hi Tender,

Please see my comments below.



----- Original Message ----
> From: Tender Slim <xs...@gmx.com>
> To: jetspeed-user@portals.apache.org
> Sent: Tue, February 2, 2010 6:32:29 PM
> Subject: Where do I place my psml files?
> 
> 
> I am using Eclipse and I have my jetspeed core application (prjA)  and my
> portlet application (prjB) in two different web projects. And from the
> little --I am a newbie -- that I have read, my psml file should go under
> prjA /WebContent/WEB-INF/pages.
> 
> A Please could someone confirm that my understanding is correct:
> i  Separating the project prjA and prjB.
> ii. The location of the psml files.

Sounds good. By the way, the psml page path is configured in /WEB-INF/conf/jetspeed.properties as follows:

# default path to (XML) PSML pages root folder
psml.pages.path = ${applicationRoot}/WEB-INF/pages

If you add a property in /WEB-INF/conf/override.properties with same name, but with different path, then you can override the default psml path.
In this sense, it's also possible to separate the psml files into another project from the portal project.

> 
> B If I am right so far, the next question is:
> Can I then create the following new directory:
> 
> prjA /WebContent/WEB-INF/pages/myusers
> or  
> use the existing reserve directory such as _role or _user.

You can create pages in a folder in the former way. In that case, portal pages can be accessed by the url path (e.g. /jetspeed/portal/myusers/test.psml) to every user in normal case.
However, /_role/ or /_user/ folder is a special folder to provide different page based on principal with a given url. Please refer to the following two pages on this feature:

[1] http://portals.apache.org/jetspeed-2/adminguide/profiler.html
[2] http://portals.apache.org/jetspeed-2/deployguide/guide-profile.html


> 
> 
> C Would the following directory structure be valid?
> 
> prjA /WebContent/WEB-INF/pages/_user/guest/_mediatype/{xhtml | html |
> wml}/default-page.psml
> or 
> prjA /WebContent/WEB-INF/pages/myusers/guest/_mediatype/{xhtml | html |
> wml}/default-page.psml
> 
> or 
> 
> none of the above.

If you want the profiling rule feature for a user, then I think the first one is right.


Kind regards,

Woonsan


      

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