Message Boards
Common JSP between portlets
Kevin Neibarger, modified 2 Years ago.
Common JSP between portlets
Regular Member Posts: 105 Join Date: 2/2/18 Recent PostsHello, I'd like to be able to generate a JSP or two that is usable over multiple portlets so I can avoid creating redundant code. I'm using Liferay 7.3.6 GA7. Currently, I have 3 JSPs that I'd need to duplicate in 3 different portlets and I'd like to only have the 3 so when one of them needs changed I only have to change in one place. Is this possible with the 7.3 Framework??
I'm not trying to override the Framework JSP or anything like that.
Olaf Kock, modified 2 Years ago.
RE: Common JSP between portlets
Liferay Legend Posts: 6403 Join Date: 9/23/08 Recent PostsIf all of the 3 portlets are in a single module, they'll naturally share those JSPs.
Any other way, you'd have to jump through hoops where the additional effort for sharing might not be worth the result. After all, OSGi is used to shield the individual modules from each other.