Author | Message |
---|---|
lishenyu
Posts: 103
|
Posted 14:41 Nov 26, 2014 |
Dr sun , when I run the guestbook.jsp (I have changed the user and password to mine) , I got a 404 error ,and the error messages in console are following: Nov 26, 2014 2:32:10 PM org.apache.catalina.core.AprLifecycleListener init And I also get 404 error when I run the HelloJSTL.jsp , but I can run the HelloJDBC.java . how do I solve it ?Thank you !
|
cysun
Posts: 2935
|
Posted 16:03 Nov 26, 2014 |
Make sure the JSPs are under /WebContent, not /WebContent/WEB-INF. Under MVC, JSPs should be under /WEB-INF so the requests must go through a controller, but Exercise 1 uses Model 1, so the JSPs need to be in a place that can be accessed directly from browser. |
lishenyu
Posts: 103
|
Posted 16:07 Nov 26, 2014 |
o many thanks! |