<?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>How to embed liferay comment discussion tag in freemarker?</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121386100" />
  <subtitle>How to embed liferay comment discussion tag in freemarker?</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121386100</id>
  <updated>2026-04-05T10:46:07Z</updated>
  <dc:date>2026-04-05T10:46:07Z</dc:date>
  <entry>
    <title>How to embed liferay comment discussion tag in freemarker?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121386099" />
    <author>
      <name>Abhishek Jain</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121386099</id>
    <updated>2022-03-27T08:48:47Z</updated>
    <published>2022-03-27T07:47:10Z</published>
    <summary type="html">&lt;p&gt;I embedded a liferay comment discussion tag using the below code in
  web content template in liferay 7.4.3.7.&lt;br /&gt;  &lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;&amp;lt;@liferay_comment[&amp;quot;discussion&amp;quot;]
className=&amp;quot;com.liferay.journal.model.JournalArticle&amp;quot; classPK=jA.getResourcePrimKey() redirect=currURL userId=assetRendererObj.getUserId()  /&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;But not able to render it. Getting below exception:&lt;br /&gt;
  &lt;strong&gt;javax.servlet.jsp.JspException:
    java.lang.NullPointerException&lt;br /&gt;     at
    com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:93)
    ~[bundleFile:?]&lt;br /&gt;     at
    freemarker.ext.jsp.TagTransformModel$TagWriter.endEvaluation(TagTransformModel.java:402)
    ~[?:?]&lt;br /&gt;     at freemarker.ext.jsp.TagTransformModel$TagWriter.afterBody(TagTransformModel.java:390)&lt;br /&gt;
    &lt;br /&gt; ​​​​​​​&lt;/strong&gt;​​​​​​​The similar code is working in jsp.
  Can anyone suggest the reason/solution for that? Got stuck in it for
  the whole day. Please do help.&lt;/p&gt;</summary>
    <dc:creator>Abhishek Jain</dc:creator>
    <dc:date>2022-03-27T07:47:10Z</dc:date>
  </entry>
</feed>
