Placing files under WEB-INF?

Hi.
I'm new to IDEA, and am still evaluating version 4.5.1. Anyway, what is proper way to place various types of files under WEB-INF folder of my web application ?
My web framework requires lots of files of various types to be placed inside this folder, but when I compile the project, these files don't end up in deploy WEB-INF (only web.xml) unless I specify each and every one of them under 'Deployment descriptors' list in Path/Web Module Settings options beside web.xml ?
There has to be some way of deploying all the files that I've placed in WEB-INF source folder !?

Regards,
Vjeran

5 comments
Comment actions Permalink

It has been a while since I setup my project but I think you just need to have a listing in the Web Resource Directories for the files to get copied in. For example, I have ${project-path}/src/web as a Web Resource Directory with / for the Relative Path in Deployment Directory.

my web folder looks like:


When I build, all my files are moved over into the right place (yes, I store my jsps under WEB-INF).

0
Comment actions Permalink

I have exactly same situation - ${project-path}/src/web as a Web Resource Directory with / for the Relative Path in Deployment Directory.

my web folder looks like:
web/
WEB-INF/
web.xml
applicationContext.xml

And when I compile it, applicationContext.xml is not copied in deployed web directory, only web.xml. Thus I have to specify applicationContext.xml in Deployment Descriptors list, and then it gets copied. :(

0
Comment actions Permalink

Sorry. Forget this last stupid mail. I found it.

0
Comment actions Permalink

What did you do to fix it?

0
Comment actions Permalink

Well, I'm not sure. I think I just changed Relative directory under Deployment directory to '/' under Web Module Settings.

0

Please sign in to leave a comment.