Reputation: 5637
I am working on jsp,I am using a book where there is a code to access image from the folder.The code is like this
<jsp:useBean id="cartoon" class="com.ora.jsp.beans.motd.CartoonBean" />
<img src="images/<jsp:getProperty name="cartoon" property="fileName" />">
So I dont know where to create the "images" folder,I mean whether inside webapp or WEB-INF.I am using maven.so below is my Project structure.
so can anyone tell me where should I create folder
Upvotes: 1
Views: 51
Reputation: 109547
Side-to-side with WEB-INF. The content under WEB-INF is not delivered to the browser. It is (should be) non-public data. Place sensitive data there.
Hence http://localhost:8080/WEB-INF/web.xml
does not work.
Access to JSP inside WEB-INF works with the url-mappings, using web.xml or the newer annotations.
Upvotes: 1
Reputation: 1974
http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html sais in: /src/main/webapp/
(need 5 characters more before post my answer)
Upvotes: 1