File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Application resource file location ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Application resource file location ?" Watch "Application resource file location ?" New topic

Application resource file location ?

jose chiramal
Ranch Hand

Joined: Feb 12, 2010
Posts: 266
Is it required that the application resources file must be under WEB-INF/classes ?? Can i place it in someother lcoation and include that path in CLASSPATH environment variable ?

jose chiramal
Ranch Hand

Joined: Feb 12, 2010
Posts: 266
Re framing the question .

Can i place application resources file in anyfolder and then place the path in the "classpath" environment variable ? Or is it required that i should place it only under WEB-INF/classes.

I have been reading that we can place it only under WEB-INF/classes.

Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2904

What I know was, the application resource file MUST be in a classpath, so better you try putting the file in any directory and put that dir in CLASSPATH environment variable.

Try this and tell me too.

[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
I agree. Here's the link:
subject: Application resource file location ?
It's not a secret anymore!