• 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
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • 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: 67670
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 :-)
 
Time flies like an arrow. Fruit flies like a banana. Steve flies like a tiny ad:
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic