<?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 include a jsp using a JSP tag</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=105268" />
  <subtitle>How to include a jsp using a JSP tag</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=105268</id>
  <updated>2026-04-06T14:03:49Z</updated>
  <dc:date>2026-04-06T14:03:49Z</dc:date>
  <entry>
    <title>RE: How to include a jsp using a JSP tag</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=105272" />
    <author>
      <name>Dhaval T Joshi</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=105272</id>
    <updated>2007-03-29T05:21:24Z</updated>
    <published>2007-03-29T05:21:24Z</published>
    <summary type="html">Hi,&lt;br /&gt;&lt;br /&gt;You need to put  &amp;amp;lt;jsp:include page=&amp;#34;jspPageToInclude.jsp&amp;#34;/&amp;amp;gt; in    &amp;amp;lt;/f:subview&amp;amp;gt;  tag. &lt;br /&gt;&lt;br /&gt;&amp;amp;lt;f:view&amp;amp;gt;&lt;br /&gt;  &amp;amp;lt;f:subview id=&amp;#34;subpage&amp;#34;&amp;amp;gt;&lt;br /&gt;     &amp;amp;lt;jsp:include page=&amp;#34;jspPageToInclude.jsp&amp;#34;/&amp;amp;gt;&lt;br /&gt;  &amp;amp;lt;/f:subview&amp;amp;gt;&lt;br /&gt;&amp;amp;lt;/f:view&amp;amp;gt;&lt;br /&gt;&lt;br /&gt;or you can also use JSTL &amp;amp;lt;c:import&amp;amp;gt;&lt;br /&gt;&lt;br /&gt;Note:- &lt;br /&gt;&lt;br /&gt;all JSF component custom actions in included pages must be nested inside the &amp;lt;f:subview&amp;gt; custom action from the JSF Core Tag Library (which is itself nested inside the &amp;lt;f:view&amp;gt; custom action). The &amp;lt;f:subview&amp;gt; action itself may be present in the including page (i.e. with the &amp;lt;jsp:include&amp;gt; or &amp;lt;c:import&amp;gt; action nested inside it), or in the included page.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Cheers!&lt;br /&gt;Team Cignex</summary>
    <dc:creator>Dhaval T Joshi</dc:creator>
    <dc:date>2007-03-29T05:21:24Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to include a jsp using a JSP tag</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=105270" />
    <author>
      <name>Abhijit Y Gurav</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=105270</id>
    <updated>2007-03-28T14:40:30Z</updated>
    <published>2007-03-28T14:40:30Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;hi,&lt;br&gt;&lt;br&gt;Did you try with&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;&amp;lt;jsp:include page="/page_name.jsp" /&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;it is working for me.&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;Abhijit Gurav&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Abhijit Y Gurav</dc:creator>
    <dc:date>2007-03-28T14:40:30Z</dc:date>
  </entry>
  <entry>
    <title>How to include a jsp using a JSP tag</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=105267" />
    <author>
      <name>Vikrant Sonone</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=105267</id>
    <updated>2007-03-06T19:43:26Z</updated>
    <published>2007-03-06T19:43:26Z</published>
    <summary type="html">Hi,&lt;br /&gt;&lt;br /&gt;I am having problems when I try to include a JSF portlet inside another portlet using either jsp:include or pageContext.include.&lt;br /&gt;&lt;br /&gt;&amp;lt;%@include file=&amp;#34;policySelection.jsp&amp;#34;%&amp;gt; but the following does not work&lt;br /&gt;&lt;br /&gt;&amp;lt;include page=&amp;#34;poilcySelection.jsp&amp;#34;/&amp;gt; or if I use &lt;br /&gt;pageContext.incldue(&amp;#34;policySelection.jsp&amp;#34;) inside the jsp tag handler. Note that policySelection.jsp is a jsf page.&lt;br /&gt;&lt;br /&gt;Please Suggest</summary>
    <dc:creator>Vikrant Sonone</dc:creator>
    <dc:date>2007-03-06T19:43:26Z</dc:date>
  </entry>
</feed>
