Jetty 7 hightide distribution, JSP and JSTL support

前端 未结 5 2254
旧巷少年郎
旧巷少年郎 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:16

    With Jetty 8, the situation is a bit different, in case this helps anyone.

    For JSTL 1.2, rather surprisingly, the taglib has to be:

    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    

    with JSTL 1.2 from (mavenishly):

     
        javax.servlet
        jstl
        1.2
     
    

    I can't really explain why the URL lacks 'jsp', but it works this way.

提交回复
热议问题