Servlet Mapping issue

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Normal
    • None
    • Affects Version/s: 6.5.1
    • Component/s: None
    • None
    • None

      Assume I have a Richlet that contains an Image,

      path to Richlet: /RichletPage
      path to Image: /Image.png

      If I mapping /* with ZK Loader, only RichletPage works, cannot get Image.png
      If I mapping /. with ZK Loader, only Image.png works, cannot access RichletPage
      If I mapping both patterns, the same as /* case.

      I also test it with a custom servlet below, Image.png is mapping to servlet with /* correctly but result is 404, there should something wron in ZK DHtmlLayoutServlet?

      package test;
      
      import java.io.IOException;
      
      import javax.servlet.ServletException;
      import javax.servlet.http.HttpServletRequest;
      import javax.servlet.http.HttpServletResponse;
      
      public class TestServlet extends org.zkoss.zk.ui.http.DHtmlLayoutServlet {
      	protected
      	void doGet(HttpServletRequest request, HttpServletResponse response)
      	throws ServletException, IOException {
      		System.out.println(request.getRequestURL());
      		super.doGet(request, response);
      	}
      }
      
      

            Assignee:
            Jenkins
            Reporter:
            benbai
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: