• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Web application deployment

 
Narendhiran Nagarajan
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When deploying an apllication, where does the jpg files should go?
 
Deepali Anand
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Same place where jsp and html pages go.

You can create a separate folder containing images too and it can go under Root directory
 
Narendhiran Nagarajan
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.
But if it is placed under the root directory, it can be accessed by any clients directly.
What if i want to restrict the access from the clients.

When you deploy static HTML and JSPs, you can choose whether to make them
directly accessible from outside the web app. By directly accessible, we mean that a
client can enter the path to the resource into his browser, and the server will return
the resource. But you can prevent direct access by putting files under WEB-INF or, if you’re deploying as a WAR file, under META-INF.
- Ref HFSJ

Can this be applied to Images?
 
Dumitru Postoronca
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. Anything you put in the WEB-INF folder is protected. File type does not matter.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic