Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do we use the request to share attributes between portlets deployed as individual WARs?

0
Posted

How do we use the request to share attributes between portlets deployed as individual WARs?

0

Overview: All portlets (both in the Liferay EAR and deployed as individual WARs) are able to share attributes using the default HttpServletRequest object using 2 different methods Method 1 – Sharing attributes without namespacing ‘ NOTE:” This method can possibly result in a ClassCastException (especially for multiple portlets in multiple WARs) and is therefore not recommended. This method involves giving all portlets access to the same request. Namespacing is not used in this method. Because all the portlets are sharing the same request, it is possible for them to overwrite each others’ attributes (as described with session above). Due to this fact, it is recommended to use Method 2 below.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123