Jetty 7 hightide distribution, JSP and JSTL support

前端 未结 5 2250
旧巷少年郎
旧巷少年郎 2021-02-06 07:38

I\'ve been struggling with Jetty 7 and its support for JSP and JSTL.

My JSP file:

<%@ page language=\"java\" contentType=\"text/html; charset=utf-8\"          


        
5条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-06 08:18

    Thx for the tip Steve! The bug seems still there, here's a workaround to run at Jetty initialisation. It did the trick for me.

    import org.apache.jasper.runtime.TldScanner;
    import java.util.Set;
    
    Field field = TldScanner.class.getDeclaredField("systemUris");
    field.setAccessible(true);
    ((Set)field.get(null)).clear();
    field.setAccessible(false);
    

提交回复
热议问题