• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Updating a single jsp in two portlets

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try to keep the portlet related info Portlet scoped session instead of Application scoped Session.
 
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"pulijalahari", please check your private messages.
 
author and cow tipper
Posts: 5009
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 :-)
 
Run away! Run away! Here, take this tiny ad with you:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic