Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-1881

Servlet Mapping issue

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Normal Normal
    • None
    • 6.5.1
    • 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);
      	}
      }
      
      

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

              Created:
              Updated:
              Resolved: