<?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>Use custom (or liferay) classes into hook jsp module</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120122167" />
  <subtitle>Use custom (or liferay) classes into hook jsp module</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120122167</id>
  <updated>2026-04-04T19:10:00Z</updated>
  <dc:date>2026-04-04T19:10:00Z</dc:date>
  <entry>
    <title>RE: RE: Use custom (or liferay) classes into hook jsp module</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120422891" />
    <author>
      <name>Nikita Laitinen</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120422891</id>
    <updated>2020-11-10T09:11:02Z</updated>
    <published>2020-11-10T09:11:02Z</published>
    <summary type="html">&lt;p&gt;Hi&lt;br /&gt;I got it. Next time i'll post using text.&lt;br /&gt;
  &lt;br /&gt;I have a web content portlet. It contains some info (let's say
  it is settings - user choice). I would like to read this info inside
  corejspfragment module. Depending on the info I got previously I would
  like to load or not scripts from site setting -&amp;gt; advanced -&amp;gt;
  analytics (corejspfragment module). I would like to compare the names
  of the fields (web content and site analytics fields) and load it by
  some condition&lt;/p&gt;</summary>
    <dc:creator>Nikita Laitinen</dc:creator>
    <dc:date>2020-11-10T09:11:02Z</dc:date>
  </entry>
  <entry>
    <title>RE: Use custom (or liferay) classes into hook jsp module</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120127880" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120127880</id>
    <updated>2020-10-22T07:47:17Z</updated>
    <published>2020-10-22T07:47:17Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Nikita Laitinen:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;I have a core jsp module that overrides liferay core theme jsp files.&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;That, together with the error message that you cite sounds like a bad solution to an otherwise benign problem. What are you trying to achieve when you go this path?&lt;br /&gt;And why do you post images of text? This won&amp;#39;t be indexed, is harder to read, impossible to quote (by copy/paste, or highlight). Please post text as text. And the external image doesn&amp;#39;t load, making your question incomplete.&lt;br /&gt;&lt;div class="quote-title"&gt;Nikita Laitinen:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;br /&gt;I have utils package that contains different classes. That package is exported. When I import it in corejsp hook jsp files I get the same problem.&lt;br /&gt;If i import it into main java file of corejsp hook it works.&lt;br /&gt;I suppose that the problem is context. (I just know it, but how it works and how to solve it according to my module structure I don&amp;#39;t know. What i have to change or add in my module corejsp??)Help me, please&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;It looks like you&amp;#39;re introducing a dependency of the core to one of the modules, e.g. Journal. As Journal is also dependent on core, this introduces a circular dependency that&amp;#39;s not in there in the first place. Yet another signal that the solution you chose to implement your problem isn&amp;#39;t an appropriate solution. &lt;br /&gt;Please tell us about the problem that you&amp;#39;re trying to solve, and we can come up with a solution suggestion that&amp;#39;s better practice.</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2020-10-22T07:47:17Z</dc:date>
  </entry>
  <entry>
    <title>Use custom (or liferay) classes into hook jsp module</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120122166" />
    <author>
      <name>Nikita Laitinen</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120122166</id>
    <updated>2020-10-21T07:10:54Z</updated>
    <published>2020-10-21T07:10:54Z</published>
    <summary type="html">Hi there!&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve got a problem.&lt;br /&gt;I have a core jsp module that overrides liferay core theme jsp files.&lt;br /&gt;Structure of this module looks like:&lt;br /&gt;&lt;br /&gt;&lt;img src="https://files.slack.com/files-pri/T04FFH6C7-F01D0DHTRBL/image.png"  style="height: auto; width: 528px;" /&gt;&lt;br /&gt;&lt;br /&gt;I used this article https://help.liferay.com/hc/en-us/articles/360017881172-JSP-Overrides-Using-Custom-JSP-Bag-&lt;br /&gt;But the problem is:&lt;br /&gt;When I import some class (my custom class from other module or liferay util) I got the next error&lt;br /&gt;the idea of error -&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;img src="/documents/portlet_file_entry/14/image--tempRandomSuffix--JUjNV98r.png/f62a8a30-62fa-50e8-6d00-876d704e9e9f" /&gt;&lt;br /&gt;&lt;br /&gt;another example&lt;br /&gt;I have utils package that contains different classes. That package is exported. When I import it in corejsp hook jsp files I get the same problem.&lt;br /&gt;If i import it into main java file of corejsp hook it works.&lt;br /&gt;I suppose that the problem is context. (I just know it, but how it works and how to solve it according to my module structure I don&amp;#39;t know. What i have to change or add in my module corejsp??)Help me, please</summary>
    <dc:creator>Nikita Laitinen</dc:creator>
    <dc:date>2020-10-21T07:10:54Z</dc:date>
  </entry>
</feed>
