JSP in /WEB-INF returns “HTTP Status 404 The requested resource is not available”

前端 未结 3 896
無奈伤痛
無奈伤痛 2020-11-22 07:43

I created a JSP file.

sample.jsp

<%@ page pageEncoding="UTF-8"%>


  
    <         


        
3条回答
  •  滥情空心
    2020-11-22 08:09

    It's mostly related to your directory structure or packaging.
    Can you please add your directory structure?

    Similar to below -

    src 
    |-html\
    |-jsp\
    

    Perhaps this should do it

    Edit - WEB-INF does not allow direct access to JSP.

提交回复
热议问题