Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-3049

Context relative path not specified for jsp:include

    Details

      Description

      The portletViewMode.jspx view has the following markup:

      portletViewMode.jspx
      <f:subview id="head">
      	<jsp:include page="styling.jspx" />
      </f:subview>
      <f:subview id="applicant">
      	<jsp:include page="applicant.jspx" />
      </f:subview>
      

      After LPS-71904 is fixed and the bridge is enabled to use PortletRequestDispatcher.forward(PortletRequest,PortletResponse) instead of PortletRequestDispatcher.include(PortletRequest,PortletResponse) the view will generate an error similar to the following:

      12:14:21,765 ERROR [PortletRequestDispatcherImpl] javax.servlet.ServletException: File &quot;/styling.jspx&quot; not found
      javax.servlet.ServletException: File &quot;/view.jsp&quot; not found
      

      In order to fix this problem, the markup must be changed to specify a context-relative path:

      portletViewMode.jspx
      <f:subview id="head">
      	<jsp:include page="/WEB-INF/views/styling.jspx" />
      </f:subview>
      <f:subview id="applicant">
      	<jsp:include page="/WEB-INF/views/applicant.jspx" />
      </f:subview>
      

        Attachments

          Activity

            People

            Assignee:
            neil.griffin Neil Griffin
            Reporter:
            neil.griffin Neil Griffin
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                bridge-impl-2.1.0
                bridge-impl-3.1.0
                bridge-impl-4.1.0