Uploaded image for project: 'Beehive'
  1. Beehive
  2. BEEHIVE-384

Cannot do a Servlet include of a page flow URI

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • V1Alpha, V1Beta
    • V1Beta
    • NetUI
    • None
    • Tomcat 5.0.25

    Description

      • Create a page flow /foo/FooController.jpf.
      • Create the following Servlet class in WEB-INF/src/foo/IncludeJPFServlet.java:
        package foo;
        import javax.servlet.http.*;
        import javax.servlet.*;
        import java.io.IOException;

      public class IncludeJPFServlet
      extends HttpServlet
      {
      public void doGet( HttpServletRequest request, HttpServletResponse response ) throws IOException, ServletException

      { request.getRequestDispatcher( "/foo/FooController.jpf" ).include( request, response ); }

      }

      • Register the Servlet in web.xml:
        <servlet>
        <servlet-name>IncludeJPF</servlet-name>
        <servlet-class>foo.IncludeJPFServlet</servlet-class>
        </servlet>
        <servlet-mapping>
        <servlet-name>IncludeJPF</servlet-name>
        <url-pattern>/includefoo/*</url-pattern>
        </servlet-mapping>

      Expected: the contents of FooController.jpf's begin page
      Actual: a 'Module Not Found' error that references '/includefoo'.

      Attachments

        Activity

          People

            alramire Alejandro Ramirez
            rich Richard Feit
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: