• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Updating a single jsp in two portlets

 
Gaurav Sharma
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using a single jsp (say abc.jsp) in two portlets displayed in a single page.
The requirement is like I have to introduce some HTML Text in one portlet. But if I change the jsp then the change is rendered in both portlets.

Please help me as how to introduce this change in one portlet so that the other portlet that is using the same jsp remains uneffected.

I will appreciate if anyone tell me that how to access a PortletSettings object in jsp

Kind Regards,
Gaurav
 
pulijala hari
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try to keep the portlet related info Portlet scoped session instead of Application scoped Session.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65342
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"pulijalahari", please check your private messages.
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as using PortletSettings, here's an example, including the appropriate deployment descriptors.

You can find a full multimedia tutorial that shows you how to code this portlet here:

Using The PortletConfig and PortletSettings Configuration Objects in a JSR168 Portlet

-Cameron McKenzie


 
Gaurav Sharma
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot Cameron McKenzie!

I went through your Portlet multimedia.
It gave me somewhat clear seperation between absolute Portlets & Concrete Portlets.
I need some more simple Portlet tutorials(if possible then please provide me some more multimedia tutorials).

Regards,
Gaurav :-)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic