cannot load JSTL taglib within embedded Jetty server

后端 未结 10 779
太阳男子
太阳男子 2020-12-10 11:55

I am writing a web application that runs within an embedded Jetty instance.

When I attempt to execute a JSTL statement, I receive the following exception:

10条回答
  •  -上瘾入骨i
    2020-12-10 12:38

    I also had the same problems. I fixed it by adding the below code:

    public static final String[] TLD_JAR_NAMES = new String[]{"sitemesh", "spring-webmvc", "shiro-web", "springside-core"};
    ...
    JettyFactory.setTldJarNames(server, TLD_JAR_NAMES);
    

    Maybe you can try it. Please replace TLD_JAR_NAMES with your real TLD Jar names.

提交回复
热议问题