Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Common JSP between portlets
Hello, 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.
If 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.
Powered by Liferay™