File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Nested Folders in webapps Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Nested Folders in webapps" Watch "Nested Folders in webapps" New topic

Nested Folders in webapps

Sandeep Chhabra
Ranch Hand

Joined: Aug 28, 2005
Posts: 340

I am facing a small problem, hopefully anyone of you could help me.
Whenever i create a nested dir structure in webapps and put WEB-INF in it like this :

The container does not finds my webapp. On the other hand whenever I make in like this :
It works fine.

So just wanted to confirm if there is some limitation that WEB-INF should be under immediate sub-folder of webapps.

Thanks for your kind help.

Regards<br />Sandy<br />[SCJP 5.0 - 75%]<br />[SCWCD 1.4 - 85%]<br />------------------<br />Tiger, Tiger burning bright,<br />Like a geek who works all night,<br />What new-fangled bit or byte,<br />Could ease the hacker's weary plight?
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
You're right, WEB-INF needs to be a top-level directory inside the web application directory.
I agree. Here's the link:
subject: Nested Folders in webapps
It's not a secret anymore!