• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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: 67634
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: 5006
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 :-)
 
Do not threaten THIS beaver! Not even with this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic