前台(test.zul):

<a label="隐藏地址" href="/Bandbox/test.html"/>

web.xml添加

<servlet>
    <servlet-name>testUrl</servlet-name>
        <servlet-class>test.testUrl</servlet-class>
</servlet>
<servlet-mapping>
  <servlet-name>testUrl</servlet-name>
    <url-pattern>/Bandbox/test.html</url-pattern>
 </servlet-mapping>
testUrl.java:
public class testUrl extends HttpServlet{
    
    private static final long serialVersionUID = 1L;

    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {
        // TODO Auto-generated method stub
        request.getRequestDispatcher("../Bandbox.zul").forward(request, response);
    }

    @Override
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {
        // TODO Auto-generated method stub
        doGet(request, response);
    }
}

效果:

zk 隐藏网页文件后缀

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-18
  • 2021-12-31
  • 2021-11-23
  • 2021-11-15
猜你喜欢
  • 2022-12-23
  • 2022-02-10
  • 2021-06-24
  • 2021-12-01
  • 2022-12-23
  • 2022-02-20
  • 2022-12-23
相关资源
相似解决方案