<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Terms of use hook example - Does not update jsp</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=52482911" />
  <subtitle>Terms of use hook example - Does not update jsp</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=52482911</id>
  <updated>2026-06-12T21:34:09Z</updated>
  <dc:date>2026-06-12T21:34:09Z</dc:date>
  <entry>
    <title>RE: Terms of use hook example - Does not update jsp</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=52493297" />
    <author>
      <name>Miguel Martinez</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=52493297</id>
    <updated>2015-04-16T16:07:53Z</updated>
    <published>2015-04-16T16:07:53Z</published>
    <summary type="html">Thanks to all for your quick responses.&lt;br /&gt;&lt;br /&gt;When I modify the jsp I can see in the console the deploying reload.:&lt;br /&gt;&lt;br /&gt;-------------------------&lt;br /&gt;INFO: Ha comenzado la recarga de Contexto [/Ejemplos-Hook-hook]&lt;br /&gt;15:43:38,268 INFO  [ContainerBackgroundProcessor[StandardEngine[Catalina]]][PluginPackageUtil:1016] Reading plugin package for Ejemplos-Hook-hook&lt;br /&gt;16-abr-2015 15:43:40 org.apache.catalina.core.StandardContext reload&lt;br /&gt;INFO: Se ha completado la recarga de este Contexto&lt;br /&gt;15:43:43,980 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][HookExplodedTomcatListener:54] Modifying hook for C:\Liferay\deploy\Ejemplos-Hook-hook.xml&lt;br /&gt;15:43:45,065 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:2389] Modifying Servlet 2.5 C:\Liferay\tomcat-7.0.42\webapps\Ejemplos-Hook-hook\WEB-INF\web.xml&lt;br /&gt;15:43:45,066 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][HookExplodedTomcatListener:60] Hook for C:\Liferay\deploy\Ejemplos-Hook-hook.xml modified successfully&lt;br /&gt;15:43:45,066 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseExplodedTomcatListener:49] Copying file C:\Liferay\deploy\Ejemplos-Hook-hook.xml to C:\Liferay\tomcat-7.0.42\conf\Catalina\localhost&lt;br /&gt;----------------------------&lt;br /&gt;&lt;br /&gt;The liferay-hook.xml is correctly parametrized:&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&amp;lt;?xml version=&amp;#34;1.0&amp;#34;?&amp;gt;&lt;br /&gt;&amp;lt;!DOCTYPE hook PUBLIC &amp;#34;-//Liferay//DTD Hook 6.1.0//EN&amp;#34; &amp;#34;http://www.liferay.com/dtd/liferay-hook_6_1_0.dtd&amp;#34;&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;hook&amp;gt;&lt;br /&gt;    &amp;lt;custom-jsp-dir&amp;gt;/META-INF/custom_jsps&amp;lt;/custom-jsp-dir&amp;gt;&lt;br /&gt;&amp;lt;/hook&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Maybe some eclipse configuration?&lt;br /&gt;&lt;br /&gt;Thanks.</summary>
    <dc:creator>Miguel Martinez</dc:creator>
    <dc:date>2015-04-16T16:07:53Z</dc:date>
  </entry>
  <entry>
    <title>RE: Terms of use hook example - Does not update jsp</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=52486233" />
    <author>
      <name>Nilesh Gundecha</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=52486233</id>
    <updated>2015-04-16T15:08:59Z</updated>
    <published>2015-04-16T15:08:59Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Over and above what Olaf and David said, do also check if your liferay-hook.xml file contains &amp;lt;custom-jsp-dir&amp;gt; tag, which will look something like this -&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;&amp;lt;custom-jsp-dir&amp;gt;/custom_jsps&amp;lt;/custom-jsp-dir&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;Nilesh&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Nilesh Gundecha</dc:creator>
    <dc:date>2015-04-16T15:08:59Z</dc:date>
  </entry>
  <entry>
    <title>RE: Terms of use hook example - Does not update jsp</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=52487716" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=52487716</id>
    <updated>2015-04-16T14:50:26Z</updated>
    <published>2015-04-16T14:50:26Z</published>
    <summary type="html">To add what Olaf says, does the path to your file in your hook match that of the portal?</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2015-04-16T14:50:26Z</dc:date>
  </entry>
  <entry>
    <title>RE: Terms of use hook example - Does not update jsp</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=52485463" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=52485463</id>
    <updated>2015-04-16T14:31:23Z</updated>
    <published>2015-04-16T14:31:23Z</published>
    <summary type="html">Does the log file say that the hook was deployed? Please check this - if it complains about something and the hook is not deployed, there&amp;#39;s no use in checking the code in the hook.&lt;br /&gt;&lt;br /&gt;That being said: Is your hook available somewhere to be able to look at it? Can you make it available?</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2015-04-16T14:31:23Z</dc:date>
  </entry>
  <entry>
    <title>Terms of use hook example - Does not update jsp</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=52482910" />
    <author>
      <name>Miguel Martinez</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=52482910</id>
    <updated>2015-04-16T14:06:56Z</updated>
    <published>2015-04-16T14:06:56Z</published>
    <summary type="html">Hi all,&lt;br /&gt;&lt;br /&gt;I was creating my first hook following the documentation steps:&lt;br /&gt;&lt;br /&gt;https://www.liferay.com/es/documentation/liferay-portal/6.2/development/-/ai/overriding-web-resources-with-hook-liferay-portal-6-2-dev-guide-en&lt;br /&gt;In the last part it says:&lt;br /&gt;&lt;em&gt;Now there are two Terms of Use JSP files in the liferay-portal-[version]/tomcat-[tomcat-version]/webapps/ROOT/html/portal directory. One is called terms_of_use.jsp and another terms_of_use.portal.jsp. terms_of_use.jsp is your hook’s version, while terms_of_use.portal.jsp is the original. To revert back to the original, undeploy your hook. Your replacement JSP is removed, and the .portal.jsp file is automatically renamed, taking its place. You can override any JSP in the Liferay core, while retaining thew ability to easily revert your changes. However, it’s not possible to override the same JSP from multiple hooks; Liferay won’t know which version to use.&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;My problem is my modified jsp is not copied in the /ROOT/html/portal folder. There is only the original one. I have tried with several examples and it is the same. I have to update directly the original files and that is not a &amp;#34;hook philosophy&amp;#34;.&lt;br /&gt;&lt;br /&gt;Do you have any idea?&lt;br /&gt;&lt;br /&gt;Thanks!</summary>
    <dc:creator>Miguel Martinez</dc:creator>
    <dc:date>2015-04-16T14:06:56Z</dc:date>
  </entry>
</feed>
