rajeev pani..
rajeev pani..

Reputation: 5637

where to create folder

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. enter image description here

so can anyone tell me where should I create folder

Upvotes: 1

Views: 51

Answers (2)

Joop Eggen
Joop Eggen

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

Grim
Grim

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

Related Questions