File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Portals and Portlets and the fly likes Portlet Session Scope - Application or Portlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Portlet Session Scope - Application or Portlet" Watch "Portlet Session Scope - Application or Portlet" New topic
Author

Portlet Session Scope - Application or Portlet

N Rao
Greenhorn

Joined: May 17, 2004
Posts: 14
Hi all,
I am new to Portlets and confused about the Portlet Session Scope. Shall appreciate if any one could explain this to me.

Here is my understanding of the Portlet Session Scope.
1. If the Portlet Session Scope is set to "Application Scope", the attributes are visible to all portlets of the same WAR-file. Am I correct?

1.a. Is it visible to all portlet windows of the portlets of the same WAR-file across different pages of the same portal?

2. If set to "Portlet Scope", the attributes are accessible/visible only in the same Portlet?

2.a. Does this hold good for all windows of the same Portlet across pages in the same portal?

Your replies can be in refernce to either JSR-168 based, JSR-286 based or IBM Portlet APIs.

Thank you very much in advance.

Best regards,
NRao


Work will teach you how to do it!<br />----------------------
pulijala hari
Ranch Hand

Joined: May 14, 2005
Posts: 70
1. If the Portlet Session Scope is set to "Application Scope", the attributes are visible to all portlets of the same WAR-file. Am I correct?
YES--You are correct.
1.a. Is it visible to all portlet windows of the portlets of the same WAR-file across different pages of the same portal?
It is visible across all pages of the portal.
2. If set to "Portlet Scope", the attributes are accessible/visible only in the same Portlet?
Yes-they are only accessible for that portlet.
2.a. Does this hold good for all windows of the same Portlet across pages in the same portal?
Yes.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61201
    
  66

"pulijalahari", please check your private mesages.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
N Rao
Greenhorn

Joined: May 17, 2004
Posts: 14
Originally posted by pulijalahari:
1. If the Portlet Session Scope is set to "Application Scope", the attributes are visible to all portlets of the same WAR-file. Am I correct?
YES--You are correct.
1.a. Is it visible to all portlet windows of the portlets of the same WAR-file across different pages of the same portal?
It is visible across all pages of the portal.
2. If set to "Portlet Scope", the attributes are accessible/visible only in the same Portlet?
Yes-they are only accessible for that portlet.
2.a. Does this hold good for all windows of the same Portlet across pages in the same portal?
Yes.


Dear Hari,
Thank you for your inputs.
They are indeed very helpful.

Best Wishes,
Rao
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Portlet Session Scope - Application or Portlet