首页 > 这个jsp界面为什么打不开?tomcat 都配好了

这个jsp界面为什么打不开?tomcat 都配好了



<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<title>Insert title here</title>
</head>
<body>

商品展示

<%
ItemsDAO itemsDAO = new ItemsDAO();
ArrayList list = itemsDAO.getAllItems();
for(int i=0;i<list.size();i++){
Items items = list.get(i);

%>




</body>
</html>
《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《
HTTP Status 404 - /jspDemo/

type Status report

message /jspDemo/

description The requested resource is not available.


你检查下是不是把jsp放到了WEB-INF下面 ┌( ಠ_ಠ)┘


是不是忘记设置url映射了?
如果Spring的话是@RequestMapping(value = "/", method = RequestMethod.GET)这种?


<welcome-file-list>
        <welcome-file>index.html</welcome-file>
        <welcome-file>index.htm</welcome-file>
        <welcome-file>index.jsp</welcome-file>
</welcome-file-list>

【热门文章】
【热门文章】