What element in liferay-hook.xml specifies where to override a core JSP?

Prepare for the Liferay Developer Certification Exam. Engage with flashcards and multiple choice questions, each accompanied by hints and explanations. Ace your certification!

The correct answer is the element that enables developers to define the directory where custom JSP files can be placed to override Liferay's core JSP files. Specifically, the <custom-jsp-dir> element in liferay-hook.xml specifies the directory within a hook plugin where the custom JSP files are located.

When you create a custom hook, you can define this directory to point to your custom JSPs. Liferay will then use these custom JSPs instead of the default ones on the server, thus allowing for customizations without modifying the core files directly. This method is essential for maintaining the integrity of the core files while still allowing for personalized changes to the user interface.

While <url-pattern>, <custom-jsp-global>, and <jsp-override> may seem relevant in the context of JSP handling within Liferay, they do not specifically denote the directory for overriding core JSPs. Each of those options serves different purposes within Liferay’s configuration but does not directly target the concept of specifying a directory for custom JSP overrides in the context of liferay-hook.xml.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy