JSP not rendering properly in Tomcat

后端 未结 4 1983
故里飘歌
故里飘歌 2020-12-21 11:47

I have a JSP page running in Tomcat that is not rendering properly. Here is what helloworld.jsp looks like:

<%@ page contentType=\"text/html;charset=UTF-         


        
4条回答
  •  春和景丽
    2020-12-21 12:05

    I think there are problem with your jsp comment.

    It should look like below. Are you not using IDE to develop your jsp? Your IDE should tell you when you have syntax error.

    <%@ page contentType="text/html;charset=UTF-8" language="java" %>
    <%@ taglib uri="cms-taglib" prefix="cms" %>
    
      
        ${content.title}
      
      
        
        

    ${content.title}

    Hello Magnolia World !

    Current time: <%= new java.util.Date() %> <%-- JSP Comment --%>

提交回复
热议问题